如何解决Anaconda拒绝的许可

时间:2017-05-10 15:12:50

标签: python windows-7 anaconda

我正在尝试在windows7上安装python包。 我使用 pip install

我收到以下错误

Exception:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\basecommand.py", line 215
, in main
    status = self.run(options, args)
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\commands\install.py", lin
e 342, in run
    prefix=options.prefix_path,
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_set.py", line 784
, in install
    **kwargs
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_install.py", line
 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\req\req_install.py", line
 1064, in move_wheel_files
    isolated=self.isolated,
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\wheel.py", line 345, in m
ove_wheel_files
    clobber(source, lib_dir, True)
  File "C:\ProgramData\Anaconda2\lib\site-packages\pip\wheel.py", line 323, in c
lobber
    shutil.copyfile(srcfile, destfile)
  File "C:\ProgramData\Anaconda2\lib\shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 'C:\\ProgramData\\Anaconda2\\Lib\\site-pa
ckages\\numexpr\\interpreter.pyd'

我搜查了一下,发现有人说我必须更新conda或anaconda。

我做了这个

然后我做了这个,但它否认了。

conda update conda


C:\Users\Administrator>conda update conda
Fetching package metadata ...

CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free/win-
64/repodata.json.bz2>
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', por
t=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caus
ed by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSCon
nection object at 0x0000000005A257F0>: Failed to establish a new connection: [Er
rno 10051] A socket operation was attempted to an unreachable network',))",),)
如果我不想要Anaconda怎么办?如何解决这个问题呢?

0 个答案:

没有答案