Closed israelg99 closed 7 years ago
When using system python it works, doesn't work only when called in pyenv.
Any suggestions?
It's important that the Python and Pip used during installation is the same Python you'll use when running.
When you run ./build.py
, it finds the python in your path (that you'd get by just typing python
). If you're using a different Python (like python3
) to run it, use that explicitly by running python3 build.py
.
If you're using pyenv to run, use the same pyenv when installing.
I've got exactly the same issue. Using pyenv virtualenv with python 3.5.2 or 3.6.0 gives the same result. Linux Mint 18. Given up on that and installed everything with system python 2.7.12
I clarified the README for installing on common environments. Can you try those instructions?
As far as I can tell it uses right python.
Python-dev and every required package is installed, so is numpy.
Simply curious what could be wrong.
Here is the full trace: http://pastebin.com/ZMH6SviY
Hit this issue today. The cause is that pyenv doesn't build CPython with --enable-shared
. The solution is to do env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.0
.
@daben thanks for the solution.
Hit this issue today. The cause is that pyenv doesn't build CPython with
--enable-shared
. The solution is to doenv PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.0
.
very very think you! i solved this problem success, it's been bothering me for days.
I cloned the repo, cd, and
./build.py
.python-dev
andpython3-dev
are installed. I'm using Kubuntu, and pyenv for managing python envs. Since it's a new issue, perhaps the latest commit a768e8bb5f1663c8b4fbb9d36e340887c550b0e0 introduced it? especially since it has to do with python headers.Can anyone try to reproduce it?