简体   繁体   English

如何在Python3.5虚拟环境中安装scipy 窗户10?

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

I have Anaconda (Python 3.6) in my Windows 10. This includes Scipy. 我的Windows 10中有Anaconda(Python 3.6)。这包括Scipy。 I am also using a virtual Python 3.5 env to support TensorFlow. 我也使用虚拟Python 3.5 env来支持TensorFlow。 Now, the problem is that I cannot import Scipy while I'm inside this virtual env. 现在,问题是我在这个虚拟环境中时无法导入Scipy。

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. 我试过:pip install scipy(没工作)easy-install scipy(没用)我也访问了http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy寻找合适的包安装,但我无法弄清楚下载哪个numpy + mkl和scipy组合。

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. 但我无法在任何地方找到问题的答案。

一旦您进入TensorFlow的虚拟环境,请尝试

conda install -c anaconda scipy=0.19.0

Try to create VirtualEnv with Python 3.5 as currently there is NO TensorFlow release for Python 3.6. 尝试使用Python 3.5创建VirtualEnv,因为目前没有适用于Python 3.6的TensorFlow版本。

steps: 脚步:

create Python 3.5 VirtualEnv: 创建Python 3.5 VirtualEnv:

conda create -n py35 python=3.5 anaconda

activate it 激活它

activate py35

install TensorFlow 安装TensorFlow

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM