Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find libpython error #199

Closed
mmagnuski opened this issue Sep 28, 2015 · 4 comments
Closed

Couldn't find libpython error #199

mmagnuski opened this issue Sep 28, 2015 · 4 comments

Comments

@mmagnuski
Copy link

I am getting the following error when trying to add PyCall:

julia> Pkg.add("PyCall")
INFO: Installing PyCall v1.0.3
INFO: Building PyCall
===============================[ ERROR: PyCall ]================================


Couldn't find libpython; check your PYTHON environment variable
while loading C:\Users\Ola\.julia\v0.3\PyCall\deps\build.jl, in expression start
ing on line 16

================================================================================


================================[ BUILD ERRORS ]================================


WARNING: PyCall had build errors.

 - packages with build errors remain installed in C:\Users\Ola\.julia\v0.3
 - build the package(s) and all dependencies with `Pkg.build("PyCall")`
 - build a single package by running its `deps/build.jl` script

================================================================================

INFO: Package database updated
INFO: METADATA is out-of-date - you may not have the latest version of PyCall
INFO: Use `Pkg.update()` to get the latest versions of your packages

I have Anaconda python distribution (but it is 32-bit, while my Julia is 64-bit, so the error may be related to #148 ), and its path is present in my Path environment variable. I did not set up the PYTHON environment variable as it seems to conflict with my standalone Psychopy (which stops working after I set PYTHON to point to Anaconda distribution).

@mmagnuski
Copy link
Author

I forgot to add my versioninfo():

Julia Version 0.3.11
Commit 483dbf5* (2015-07-27 06:18 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

@stevengj
Copy link
Member

Seems like a dup of #148. 64-bit Julia cannot call 32-bit Python, so a failure is correct here.

@mmagnuski
Copy link
Author

Ok, thanks, I'll check with 64-bit python.

@stevengj
Copy link
Member

If you do Pkg.update() to PyCall 1.1.x, then you can just set ENV["PYTHON"]=""; Pkg.build("PyCall") and it will install its own private Miniconda distribution for you, in a way that won't interfere with your other Python installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants