Build developer version of scipy
I am a beginner and try to contribute to development scipy
. I searched scipy on my github and tried to build it based on this documentation . However, when trying to import scipy
into Python, I get the following error:
>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy
I have also tried to install all required prerequisites as mentioned here . I know I can do it pip install scipy
, but I don't think it's not a matter of making a developer version of scipy. Can anyone please help?
source to share
I found this issue: https://github.com/scipy/scipy/issues/5893 which suggest adding scipy to yours PYTHONPATH
:export PYTHONPATH="$HOME/path/to/scipy/:$PYTHONPATH"
More information on how to do this on different systems from the scanty documentation ( FAQ section ):
On Linux and OSX, you can run the command:
$ export PYTHONPATH=$PWD
and on Windows
$ set PYTHONPATH=/path/to/scipy
The previous issue also suggests another workaround, which is to open scipy as a PyCharm project and create a virtual environment in the IDE to use in your encoding!
Good luck :)
source to share