-
Notifications
You must be signed in to change notification settings - Fork 32
FAQ
Mathias Louboutin edited this page Jul 15, 2020
·
7 revisions
If you get an error like
ERROR: LoadError: PyError (PyImport_ImportModule
It is likely that Julia does not use the correct Python and the error message contains "PyCall is currently configured to use the Julia-specific Python distribution". To reconfigure Julia to use the system Python 3, run:
export PYTHON=$(which python3)
julia -e 'using Pkg; Pkg.build("PyCall")'
Or if your system Python 3 is just python
export PYTHON=$(which python)
julia -e 'using Pkg; Pkg.build("PyCall")'
If you run into an error looking like
ERROR: cannot find name corresponding to UUID
It looks like General Julia registry has occasional problems. If you get an error during add/dev/update/resolve packages that General registry cannot by update try the following from package manager (after typing ]):
pkg> registry remove General
pkg> registry add General
That should pull the fresh version of General registry.
In case this throws a second error registry
General not found.
you can add back the Genral Julia registry via
julia -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General.git"))'