我从this link设置了Anaconda和setuptools。目前,如果我尝试在Windows上从命令行安装任何模块,我会收集此错误消息。
C:\Users\XXX>pip install theano
Downloading/unpacking theano
Cleaning up...
Exception:
Traceback (most recent call last):
File "C:\Users\eren\Anaconda\lib\site-packages\pip\basecommand.py", line 122,
in main
status = self.run(options, args)
File "C:\Users\eren\Anaconda\lib\site-packages\pip\commands\install.py", line
278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl
e=self.bundle)
File "C:\Users\eren\Anaconda\lib\site-packages\pip\req.py", line 1229, in prep
are_files
req_to_install.run_egg_info()
File "C:\Users\eren\Anaconda\lib\site-packages\pip\req.py", line 292, in run_e
gg_info
logger.notify('Running setup.py (path:%s) egg_info for package %s' % (self.s
etup_py, self.name))
File "C:\Users\eren\Anaconda\lib\site-packages\pip\req.py", line 265, in setup
_py
import setuptools
File "C:\Users\eren\Anaconda\lib\site-packages\setuptools\__init__.py", line 1
2, in <module>
from setuptools.extension import Extension
File "C:\Users\eren\Anaconda\lib\site-packages\setuptools\extension.py", line
7, in <module>
from setuptools.dist import _get_unpatched
File "C:\Users\eren\Anaconda\lib\site-packages\setuptools\dist.py", line 16, i
n <module>
from setuptools.depends import Require
File "C:\Users\eren\Anaconda\lib\site-packages\setuptools\depends.py", line 6,
in <module>
from setuptools import compat
File "C:\Users\eren\Anaconda\lib\site-packages\setuptools\compat.py", line 19,
in <module>
from SimpleHTTPServer import SimpleHTTPRequestHandler
File "C:\Users\eren\Anaconda\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "C:\Users\eren\Anaconda\lib\SimpleHTTPServer.py", line 214, in SimpleHTTP
RequestHandler
mimetypes.init() # try to read system mime.types
File "C:\Users\eren\Anaconda\lib\mimetypes.py", line 348, in init
db.read_windows_registry()
File "C:\Users\eren\Anaconda\lib\mimetypes.py", line 256, in read_windows_regi
stry
with _winreg.OpenKey(hkcr, subkeyname) as subkey:
WindowsError: [Error 2] The system cannot find the file specified
Storing debug log for failure in C:\Users\eren\pip\pip.log
你对他的错误有任何想法吗?
我使用不同的版本重新安装了所有的setuptools,但错误仍然存在。另外一个事实是,我可以删除安装有Anaconda的任何模块,但安装会引发错误。