简体   繁体   English

SKLearn和Scipy未使用Python 3.6安装thorugh pip

[英]SKLearn and Scipy not installing thorugh pip with Python 3.6

I am trying to install sklearn, and hitting wall after wall. 我正在尝试安装sklearn,并一墙接一墙地砸墙。 When I first tried to install it through pip, it started flipping out about scipy. 当我第一次尝试通过pip安装它时,它开始向scipy转移。 I went and installed the scipy wheel file, and the numpy+mkl wheel file after that. 我去安装了scipy wheel文件,然后安装了numpy + mkl wheel文件。 After some more errors and such, I tried reinstalling everything. 在出现更多类似错误之后,我尝试重新安装所有内容。 Still nope. 仍然没有。 Tried updating setuptools just to be sure, still nope. 只是为了确定尝试过更新setuptools,仍然没有。 This time, I try again and after considerable time and a huge wall of text, if stops with this error: 这次,我再次尝试,并经过了相当长的时间和大量的文字,如果此错误停止了:

Command "C:\Users\ZackPC\AppData\Local\Programs\Python\Python36-32\python.exe 
-u -c "import setuptools, 
tokenize;__file__='C:\\Users\\ZackPC\\AppData\\Local\\Temp\\pip-build-
gowcc39f\\scikit-learn\\setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, 
__file__, 'exec'))" install --record C:\Users\ZackPC\AppData\Local\Temp\pip-
_y2kd8u6-record\install-record.txt --single-version-externally-managed --
compile" failed with error code 1 in C:\Users\ZackPC\AppData\Local\Temp\pip-
build-gowcc39f\scikit-learn\

Searching this error gets me right back to one of the beginning threads I searched through, this one, which has a similar error. 搜索这个错误让我马上回开始线程我搜索过的一个, 这一个,它有一个类似的错误。 I've tried pretty much everything in there to no avail. 我尝试了几乎所有的尝试,但都无济于事。 Anybody have ideas? 有人有想法吗?

Anaconda is the easiest solution. Anaconda是最简单的解决方案。 I recall before I used anaconda that you can't include scipy and numpy in the same requirements file as each depends on the other so you have to install them in the right sequence. 我记得在使用anaconda之前,您不能在同一需求文件中包含scipy和numpy,因为它们彼此依赖,因此您必须以正确的顺序安装它们。 Then there were other errors around versions of linalg and other packages; 然后,在linalg和其他软件包的版本周围还有其他错误; and of course it takes forever to compile them. 当然编译它们需要永远。

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

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