Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have a permission to ask a question, You must login to ask question.

Regarding installing SciPy from PyCharm

  • 8

I have been trying to install SciPy in PyCharm on Windows 7. But the installation process failed with the following error message.

Enter image description here

Then I followed the steps listed in install Python package with .whl file,

pip install wheel
pip install some-package.whl

The installation process was successful. However, I still cannot find the SciPy package from PyCharm.

Enter image description here

Share

1 Answer

  1. If you’ve gotten over the NumPy/wheel issues in installing SciPy on Windows 7, then this is a relatively quick fix. In short, you need to add the path where SciPy lives (only a few subfolders away from Python). You can see a general summary of adding paths in PyCharm here.

    Open a Python Interpreter where you can open SciPy.

    >> import scipy
    >> scipy.__file__
    "path/to/scipy"
    

    Here is what my path looked like:

    C:\Users\ME\AppData\Local\Continuum\Anaconda3\Lib\site-packages\scipy
    

    So, SciPy is installed in Continuum, whereas Python lives in its own directory. The default interpreter paths in PyCharm look in the Python directory, shown below:

    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/DLLs
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/Lib
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/Lib/site-packages
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/Lib/site-packages/win32
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/Lib/site-packages/win32/lib
    file://C:/Users/ME/AppData/Local/Programs/Python/Python35/Lib/site-packages/pythonwin
    

    To fix this, open PyCharm and head to menu FileSettingsProject Interpreter. Open the ProjectInterprets, and there is a small button on the right side labelled “show paths”. I added my path up to SciPy:

    file://C:/Users/ME/AppData/Local/Continuum/Anaconda3/Lib/site-packages/
    

    Go ahead and add your path here, and you should be good to go!

    • 0

Sorry, you do not have a permission to answer to this question.

close