简体   繁体   English

在Mac OS X上的python 3.5上导入numpy

[英]import numpy on python 3.5 on mac osx

I tried to follow your advices about typing in macport : 我试图按照您的建议在macport输入:

cd /opt/local/bin 
sudo ./port install py35-numpy

and apparently it worked, but Python still doesn't find any module named 'numpy' ... 显然可以用,但是Python仍然找不到名为'numpy'任何模块...

Thanks for help 感谢帮助

If you're interested in painlessly using Python with NumPy on Linux, Mac, or Windows, I'd highly suggest using the miniconda distribution. 如果您对在Linux,Mac或Windows上轻松地将Python与NumPy结合使用感兴趣,我强烈建议您使用miniconda发行版。 Once it's installed, just open a terminal and run 安装完成后,只需打开终端并运行

$ conda install python=3.5 numpy

and you'll be ready to go. 然后您就可以开始了。 It also makes the rest of the scientific Python ecosystem similarly easy to install. 它也使其余的科学Python生态系统同样易于安装。

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

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