我有python 2.7,我在它旁边安装了python 3.4,但python 3.4没有numpy包。当我使用sudo pip安装-U numpy时,它将它安装在python2.7位置。我如何在已经安装python 2.7的机器上安装numpy for python 3.4?在Ubuntu下安装numpy for python 3.4.0
2
A
回答
3
你靠近安装numpy的,更新的,你必须sudo pip3 install -U numpy
python3.4包(注意pip3
)。
这可能是你还是得先安装PIP3(不知道这是否是捆绑)的情况。可能是因为你必须sudo apt-get install python-pip3
什么的。如果你有最近的Ubuntu(我相信从14.10开始),那么当你第一次启动Ubuntu时,你已经安装了python 3.4,以及预装了pip3
。
您也可以通过Ubuntu的软件包管理器安装,但如果你想要一个独立于操作系统的方式,你可以只使用pip3
。
2
只是为Python 3软件中心,或者在终端
sudo apt-get install python3-numpy
相关问题
- 1. 在Ubuntu 10.04上安装numpy for python 3.1.2
- 2. 在ubuntu下重新安装numpy
- 3. 在Ubuntu下安装python-matplotlib
- 4. 如何在Ubuntu中安装Oauth2.0 for python
- 5. 在Ubuntu中安装Pygame for Python 3.1.2
- 6. 在ubuntu下安装pycairo
- 7. numpy的Ubuntu的(12.04)下安装引起的Python导入错误
- 8. OSX通过brew for python3安装numpy
- 9. 在终端上从Ubuntu安装Numpy 1.9.2
- 10. Ubuntu - Python安装
- 11. 安装Selenium for Python 3.6(Ubuntu 17.04)
- 12. 安装PIL/Pillow for ubuntu python 2.7
- 13. 在Ubuntu下安装pyinterval
- 14. Conda安装R 3.4.0
- 15. 在Ubuntu 11.10的virtualenv中安装'numpy`
- 16. 在ubuntu上安装Apache spark for pyspark
- 17. 为python安装numpy
- 18. CX_Oracle for python,在Anaconda下未安装
- 19. error安装phpmyadmin for ubuntu 12.10
- 20. ubuntu安装python 3.5
- 21. 与PIP安装NumPy的Ubuntu上
- 22. 安装numpy for python3 in fedora 13
- 23. 在Ubuntu下安装cassandra?
- 24. 在Ubuntu下安装odtone
- 25. 在ubuntu下安装rails
- 26. 在Ubuntu下安装ns2 11.04
- 27. [R 3.4.0 tm.plugin.webmining安装失败
- 28. 在Ubuntu上安装MagickWand for PHP
- 29. 在ubuntu上安装imap for php7.1
- 30. 在ubuntu上安装OpenCL for AMD 16.04
使用virtualenv或'python3-pip'。 – DTing