How to install scipy in Python3.5 virtual env | windows 10?

冷暖自知 提交于 2019-12-10 19:32:34

问题


I have Anaconda (Python 3.6) in my Windows 10. This includes Scipy. I am also using a virtual Python 3.5 env to support TensorFlow. Now, the problem is that I cannot import Scipy while I'm inside this virtual env.

I have tried: pip install scipy (didn't work) easy-install scipy (didn't work) I also visited http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy to look for suitable package to install but I could not figure out which numpy+mkl and scipy combination to download.

I'll be grateful for help. I know that there already exist similar questions on this issue. But I could not find answer to my problem anywhere.


回答1:


Once you're inside your virtual environment for TensorFlow, try

conda install -c anaconda scipy=0.19.0



回答2:


Try to create VirtualEnv with Python 3.5 as currently there is NO TensorFlow release for Python 3.6.

steps:

create Python 3.5 VirtualEnv:

conda create -n py35 python=3.5 anaconda

activate it

activate py35

install TensorFlow

conda install --channel https://conda.anaconda.org/conda-forge tensorflow


来源:https://stackoverflow.com/questions/43912218/how-to-install-scipy-in-python3-5-virtual-env-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!