Python 3.x python3.6-m virtualenv测试失败错误400

Python 3.x python3.6-m virtualenv测试失败错误400,python-3.x,virtualenv,Python 3.x,Virtualenv,我在执行这个python命令时遇到一些问题。 以前,这种情况并没有发生,我也不知道哪里出了问题或遗漏了什么 Tests-MacBook-Pro:virtualenvs testytester$ python3.6 -m virtualenv ga2 Using base prefix '/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6' New python executable in /Users/

我在执行这个python命令时遇到一些问题。 以前,这种情况并没有发生,我也不知道哪里出了问题或遗漏了什么

Tests-MacBook-Pro:virtualenvs testytester$ python3.6 -m virtualenv ga2
Using base prefix '/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/testytester/virtualenvs/ga2/bin/python3.6
Not overwriting existing python script /Users/testytester/virtualenvs/ga2/bin/python (you must use /Users/testytester/virtualenvs/ga2/bin/python3.6)
Installing setuptools, pip, wheel...
  Complete output from command /Users/testytester/...vs/ga2/bin/python3.6 - setuptools pip wheel:
  Collecting setuptools
  HTTP error 400 while getting https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 (from https://pypi.org/simple/setuptools/) (requires-python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*)
  Could not install requirement setuptools from https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 because of error 400 Client Error: Bad Request for url: https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl
Could not install requirement setuptools from https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 because of HTTP error 400 Client Error: Bad Request for url: https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl for URL https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 (from https://pypi.org/simple/setuptools/) (requires-python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*)
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/testytester/Library/Python/3.6/lib/python/site-packages/virtualenv.py", line 2328, in <module>
    main()
  File "/Users/testytester/Library/Python/3.6/lib/python/site-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/Users/testytester/Library/Python/3.6/lib/python/site-packages/virtualenv.py", line 945, in create_environment
    download=download,
  File "/Users/testytester/Library/Python/3.6/lib/python/site-packages/virtualenv.py", line 901, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/Users/testytester/Library/Python/3.6/lib/python/site-packages/virtualenv.py", line 797, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /Users/testytester/...vs/ga2/bin/python3.6 - setuptools pip wheel failed with error code 1
测试MacBook Pro:virtualenvs testytester$python3.6-m virtualenv ga2
使用基本前缀“/usr/local/ceral/python3/3.6.2/Frameworks/Python.framework/Versions/3.6”
/Users/testytester/virtualenvs/ga2/bin/python3.6中新的python可执行文件
不覆盖现有python脚本/Users/testytester/virtualenvs/ga2/bin/python(必须使用/Users/testytester/virtualenvs/ga2/bin/python3.6)
安装安装工具、pip、控制盘。。。
从命令/Users/testytester/…vs/ga2/bin/python3.6-setuptools pip wheel完成输出:
收集设置工具
获取时出现HTTP错误400https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 (来自https://pypi.org/simple/setuptools/)(需要python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*)
无法从安装需求设置工具https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 由于错误400,客户端错误:url请求错误:https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl
无法从安装需求设置工具https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 由于HTTP错误400客户端错误:url请求错误:https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl 用于URLhttps://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#sha256=8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8 (来自https://pypi.org/simple/setuptools/)(需要python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*)
----------------------------------------
…安装安装工具、pip、控制盘…完成。
回溯(最近一次呼叫最后一次):
文件“/usr/local/cillar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”,第193行,在运行模块中
“\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
文件“/usr/local/ceral/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”,第85行,在运行代码中
exec(代码、运行\全局)
文件“/Users/testytester/Library/Python/3.6/lib/Python/site-packages/virtualenv.py”,第2328行,在
main()
文件“/Users/testytester/Library/Python/3.6/lib/Python/site-packages/virtualenv.py”,第713行,在main中
symlink=options.symlink)
create_环境中的文件“/Users/testytester/Library/Python/3.6/lib/Python/site packages/virtualenv.py”,第945行
下载,
文件“/Users/testytester/Library/Python/3.6/lib/Python/site-packages/virtualenv.py”,第901行,安装轮中
调用子进程(cmd,show_stdout=False,extra_env=env,stdin=SCRIPT)
文件“/Users/testytester/Library/Python/3.6/lib/Python/site packages/virtualenv.py”,第797行,在call_子流程中
%(指令描述,程序返回代码))
OSError:Command/Users/testytester/…vs/ga2/bin/python3.6-setuptools pip wheel失败,错误代码为1

错误的可能重复是不同的,但原因是相同的-PyPI正在推出一个新的基础架构,并将PyPI.python.org重定向到PyPI.org。