关于python安装环境的几个问题,mark一下

来源:互联网 发布:传奇一条龙源码 编辑:程序博客网 时间:2024/06/03 12:38

1.windows7 64位+Python32位:会发现在pip install时,答复没有可用的版本

解决方案:删除后重装64位python


2.   "Missing required dependencies{0}".format(missing_dependencies))

ImportError: Missingrequired dependencies ['numpy']

一开始搜索stackoverflow告诉我是账户权限问题,删了装,装了删,始终解决不了。

最后这个网页上的一段话告诉了我原因http://www.lfd.uci.edu/~gohlke/pythonlibs/

Many binaries depend on numpy-1.11+mkl and the Microsoft Visual C++ 2008 (x64, x86, and SP1 for CPython 2.7), Visual C++ 2010 (x64, x86, for CPython 3.4), or the Visual C++ 2015 (x64 and x86 for CPython 3.5 and 3.6) redistributable packages.

Install numpy+mkl before other packages that depend on it.


所以,必须安装numpy+mkl,而不能是简单的numpy.

安装后完美解决。


3.python2/3的问题

之前电脑上同时安装了python2/3,为了使用ipython notebook,调整了N次环境始终无法正确启动。

最终无奈删除python3,只保留python2.

ipython notebook启动成功。



0 0