Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用PIP安装Spacy时出错-退出状态1_Python_Python 3.x_Pip_Setuptools_Spacy - Fatal编程技术网

Python 使用PIP安装Spacy时出错-退出状态1

Python 使用PIP安装Spacy时出错-退出状态1,python,python-3.x,pip,setuptools,spacy,Python,Python 3.x,Pip,Setuptools,Spacy,我试图在Python 3.7.3的Anaconda prompt中安装SpaCy,下面出现了错误 我已将pip(到19.3.1)和setuptools(到41.6.0)升级到最新版本 我需要使用代理并且没有(本地)管理员权限,因此我无法设置虚拟环境 有什么好主意吗?我是新手。谢谢 (base) C:\>python -m pip install --proxy INT%5Cuser:password@proxy:port spacy Collecting spacy Using cac

我试图在Python 3.7.3的Anaconda prompt中安装SpaCy,下面出现了错误

我已将pip(到19.3.1)和setuptools(到41.6.0)升级到最新版本

我需要使用代理并且没有(本地)管理员权限,因此我无法设置虚拟环境

有什么好主意吗?我是新手。谢谢

(base) C:\>python -m pip install --proxy INT%5Cuser:password@proxy:port spacy
Collecting spacy
  Using cached https://files.pythonhosted.org/packages/fe/e2/81233a60e63fa94bfbddbe2c0902d1c50d80ef33666630683e9b2486f501/spacy-2.2.2.tar.gz
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\ProgramData\Anaconda3\python.exe' 'C:\ProgramData\Anaconda3\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\u213356\AppData\Local\Temp\pip-build-env-3epvxcgn\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools
       cwd: None
  Complete output (7 lines):
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03ED00B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03ED0430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03ED0230>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03ED0C50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03ED09B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
  ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
  ERROR: No matching distribution found for setuptools
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' 'C:\ProgramData\Anaconda3\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\u213356\AppData\Local\Temp\pip-build-env-3epvxcgn\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools Check the logs for full command output.
(基本)C:\>python-m pip安装--代理INT%5c用户:password@proxy:港口空间
收集空间
使用缓存https://files.pythonhosted.org/packages/fe/e2/81233a60e63fa94bfbddbe2c0902d1c50d80ef33666630683e9b2486f501/spacy-2.2.2.tar.gz
正在安装生成依赖项。。。错误
错误:命令出错,退出状态为1:
命令:“C:\ProgramData\Anaconda3\python.exe”“C:\ProgramData\Anaconda3\lib\site packages\pip”安装--忽略已安装--无用户--前缀“C:\Users\u213356\AppData\Local\Temp\pip-build-env-3epvxcgn\overlay”-无警告脚本位置--无二进制:无:-仅二进制:无:-ihttps://pypi.org/simple --设置工具
cwd:没有
完整输出(7行):
警告:在连接被“NewConnectionError(”:未能建立新连接:[Errno 11001]getaddrinfo Failed')断开后重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None)):/simple/setuptools/
警告:在连接被“NewConnectionError(”:未能建立新连接:[Errno 11001]getaddrinfo Failed')断开后重试(重试(总计=3,连接=None,读取=None,重定向=None,状态=None)):/simple/setuptools/
警告:在连接被“NewConnectionError(”:未能建立新连接:[Errno 11001]getaddrinfo Failed')断开后重试(重试(总计=2,连接=None,读取=None,重定向=None,状态=None)):/simple/setuptools/
警告:在连接被“NewConnectionError(”:未能建立新连接:[Errno 11001]getaddrinfo Failed')断开后重试(重试(总计=1,连接=None,读取=None,重定向=None,状态=None)):/simple/setuptools/
警告:在连接被“NewConnectionError(”:未能建立新连接:[Errno 11001]getaddrinfo Failed')断开后重试(重试(总计=0,连接=None,读取=None,重定向=None,状态=None)):/simple/setuptools/
错误:找不到满足setuptools要求的版本(来自版本:无)
错误:找不到setuptools的匹配分发
----------------------------------------
错误:命令出错,退出状态为1:'C:\ProgramData\Anaconda3\python.exe''C:\ProgramData\Anaconda3\lib\site packages\pip'安装--忽略已安装--无用户--前缀'C:\Users\u213356\AppData\Local\Temp\pip-build-env-3epvxcgn\overlay'--无警告脚本位置--无二进制文件:无:--仅二进制文件:无:-ihttps://pypi.org/simple -- setuptools检查日志以获得完整的命令输出。

问题是由于Anaconda是32位的,而操作系统是64位的。重新安装64位版本的Anaconda,一切正常