无法安装“屏幕”软件包python

时间:2019-02-13 06:51:39

标签: python python-3.x pip

我一直在ubuntu上开发python应用程序。 我始终在virtualenv中工作,以更好地处理软件包。 我最近在Windows上克隆了我的项目,创建了virtualenv。 冉

  

pip install -r requirements.txt

requirements.txt

  

certifi == 2018.11.29

     

chardet == 3.0.4

     

dj-database-url == 0.5.0

     

Django == 2.1.2

     

django-admin == 1.3.2

     

django-crispy-forms == 1.7.2

     

django-excel-response2 == 2.0.8

     

django-extensions == 2.1.4

     

django-filter == 2.0.0

     

django-heroku == 0.3.1

     

djangorestframework == 3.9.0

     

flake8 == 3.6.0

     

gunicorn == 19.9.0

     

httpie == 1.0.2

     

idna == 2.8

     

jedi == 0.13.2

     

mccabe == 0.6.1

     

parso == 0.3.1

     

pep8 == 1.7.1

     

枕头== 5.3.0

     

psycopg2 == 2.7.5

     

psycopg2-binary == 2.7.6.1

     

pycodestyle == 2.4.0

     

pydotplus == 2.0.2

     

pyflakes == 2.0.0

     

Pygments == 2.3.1

     

pyparsing == 2.3.0

     

pytz == 2018.5

     

requests == 2.21.0

     

taggit-selectize == 2.6.0

     

urllib3 == 1.24.1

     

whitenoise == 4.1.1

     

xlwt == 1.3.0

还安装了C ++构建工具,但无法安装名为“ screen”的程序包的依赖项。

  

Python版本:3.7.2

     

点子版本:19.0.2

     

设置工具版本:40.8.0

完整跟踪:

  

PS C:\ Users \ HP \ Desktop \ Crowdsocial> pip install -r。\ requirements.txt   已满足要求:c:\ python3 \ lib \ site-packages中的certifi == 2018.11.29(来自-r。\ requirements.txt(第1行))(2018.11.29)   已满足要求:c:\ python3 \ lib \ site-packages中的chardet == 3.0.4(来自-r。\ requirements.txt(第2行))(3.0.4)   已经满足的要求:c:\ python3 \ lib \ site-packages中的dj-database-url == 0.5.0(来自-r。\ requirements.txt(第3行))(0.5.0)   已经满足的要求:c:\ python3 \ lib \ site-packages中的Django == 2.1.2(来自-r。\ requirements.txt(第4行))(2.1.2)   收集django-admin == 1.3.2(从-r。\ requirements.txt(第5行))     使用缓存的https://files.pythonhosted.org/packages/b7/69/c3fea1bb60e45f52bcc658cae6f04a25cbf8c7e8b3257f90dfd77575214b/django_admin-1.3.2-py2.py3-none-any.whl   收集django-crispy-forms == 1.7.2(从-r。\ requirements.txt(第6行))     使用缓存的https://files.pythonhosted.org/packages/9a/05/6bad05742d185ec2fabfa4deab05cafde286eb3f383fba24b3674340aca2/django_crispy_forms-1.7.2-py2.py3-none-any.whl   收集django-excel-response2 == 2.0.8(从-r。\ requirements.txt(第7行))     使用缓存的https://files.pythonhosted.org/packages/37/ca/1917052aa5101b6511b997d8d71da020b200cf155abe5b3510e3ee5d5a85/django_excel_response2-2.0.8-py2.py3-none-any.whl   收集django-extensions == 2.1.4(从-r。\ requirements.txt(第8行))     使用缓存的https://files.pythonhosted.org/packages/e4/56/6a854a56732f7cb6a0393b8a32ae8a37b82b004e638b7b2f153b66733ce5/django_extensions-2.1.4-py2.py3-none-any.whl   收集django-filter == 2.0.0(从-r。\ requirements.txt(第9行))     使用缓存的https://files.pythonhosted.org/packages/6a/8b/8517167a0adc45ce94d0873efb9487dd4cdeff7e10f96e837ad3d58f5837/django_filter-2.0.0-py3-none-any.whl   收集django-heroku == 0.3.1(从-r。\ requirements.txt(第10行))     使用缓存的https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl   收集djangorestframework == 3.9.0(从-r。\ requirements.txt(第11行))     使用缓存的https://files.pythonhosted.org/packages/99/0b/d37a5a96c5d301e23adcabcc2f3fa659fb34e6308590f95ebb50cdbe98a1/djangorestframework-3.9.0-py2.py3-none-any.whl   收集flake8 == 3.6.0(从-r。\ requirements.txt(第12行))     使用缓存的https://files.pythonhosted.org/packages/34/a6/49e2849a0e5464e1b5d621f63bc8453066f0f367bb3b744a33fca0bc1ddd/flake8-3.6.0-py2.py3-none-any.whl   收集gunicorn == 19.9.0(来自-r。\ requirements.txt(第13行))     使用缓存的https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl   收集httpie == 1.0.2(从-r。\ requirements.txt(第14行))     使用缓存的https://files.pythonhosted.org/packages/d7/46/cfb014b9de6ac5cdd1fa06d85f411dd9506102c8b094906460b4a1710681/httpie-1.0.2-py2.py3-none-any.whl   收集idna == 2.8(从-r。\ requirements.txt(第15行))     使用缓存的https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl   收集jedi == 0.13.2(从-r。\ requirements.txt(第16行))     使用缓存的https://files.pythonhosted.org/packages/c2/bc/54d53f5bc4658380d0eca9055d72be4df45e5bfd91a4bac97da224a92553/jedi-0.13.2-py2.py3-none-any.whl   已经满足的要求:c:\ users \ hp \ appdata \ roaming \ python \ python37 \ site-packages中的mccabe == 0.6.1(来自-r。\ requirements.txt(第17行))(0.6.1)   收集parso == 0.3.1(从-r。\ requirements.txt(第18行))     使用缓存的https://files.pythonhosted.org/packages/09/51/9c48a46334be50c13d25a3afe55fa05c445699304c5ad32619de953a2305/parso-0.3.1-py2.py3-none-any.whl   收集pep8 == 1.7.1(从-r。\ requirements.txt(第19行))     使用缓存的https://files.pythonhosted.org/packages/42/3f/669429ce58de2c22d8d2c542752e137ec4b9885fff398d3eceb1a7f5acb4/pep8-1.7.1-py2.py3-none-any.whl   收集枕头== 5.3.0(来自-r。\ requirements.txt(第20行))     使用缓存的https://files.pythonhosted.org/packages/aa/49/e9de895c7baab95f9b3ab6c8df272edcabba3c92046b008cfa4650fe6eea/Pillow-5.3.0-cp37-cp37m-win32.whl   收集psycopg2 == 2.7.5(从-r。\ requirements.txt(第21行))     使用缓存的https://files.pythonhosted.org/packages/12/89/9bbcc4ab312be0e32abd268512fce75f13a015c4c6a6340b600d168f0dbd/psycopg2-2.7.5-cp37-cp37m-win32.whl   收集psycopg2-binary == 2.7.6.1(从-r。\ requirements.txt(第22行))     使用缓存的https://files.pythonhosted.org/packages/07/a1/5c2ed2c56296963cfc9f506bd7ce3a520f906f9404359f1b3fecac7f2fd8/psycopg2_binary-2.7.6.1-cp37-cp37m-win32.whl   收集pycodestyle == 2.4.0(从-r。\ requirements.txt(第23行))     使用缓存的https://files.pythonhosted.org/packages/e5/c6/ce130213489969aa58610042dff1d908c25c731c9575af6935c2dfad03aa/pycodestyle-2.4.0-py2.py3-none-any.whl   收集pydotplus == 2.0.2(从-r。\ requirements.txt(第24行))   收集pyflakes == 2.0.0(来自-r。\ requirements.txt(第25行))     使用缓存的https://files.pythonhosted.org/packages/44/98/af7a72c9a543b1487d92813c648cb9b9adfbc96faef5455d60f4439aa99b/pyflakes-2.0.0-py2.py3-none-any.whl   收集Pygments == 2.3.1(来自-r。\ requirements.txt(第26行))     使用缓存的https://files.pythonhosted.org/packages/13/e5/6d710c9cf96c31ac82657bcfb441df328b22df8564d58d0c4cd62612674c/Pygments-2.3.1-py2.py3-none-any.whl   收集pyparsing == 2.3.0(从-r。\ requirements.txt(第27行))     使用缓存的https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl   已经满足的要求:c:\ python3 \ lib \ site-packages中的pytz == 2018.5(来自-r。\ requirements.txt(第28行))(2018.5)   收集请求== 2.21.0(来自-r。\ requirements.txt(第29行))     使用缓存的https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl   收集taggit-selectize == 2.6.0(从-r。\ requirements.txt(第30行))     使用缓存的https://files.pythonhosted.org/packages/d8/5a/7d45601f587cbfa6e4135ae6a486ce8d2981e516bfff7f8227ea249c4b55/taggit_selectize-2.6.0-py2.py3-none-any.whl   收集urllib3 == 1.24.1(从-r。\ requirements.txt(第31行))     使用缓存的https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl   收集whitenoise == 4.1.1(从-r。\ requirements.txt(第32行))     使用缓存的https://files.pythonhosted.org/packages/02/0e/9a2c44be678a998ddb96d872b5c1e5bc1db3f3c2b12dcf5d129a7c2f4cbf/whitenoise-4.1.1-py2.py3-none-any.whl   已经满足的要求:c:\ python3 \ lib \ site-packages中的xlwt == 1.3.0(来自-r。\ requirements.txt(第33行))(1.3.0)   已经满足的要求:c:\ python3 \ lib \ site-packages中的django-six> = 1.0.4(来自django-excel-response2 == 2.0.8->-r。\ requirements.txt(第7行))( 1.0.4)   收集屏幕(来自django-excel-response2 == 2.0.8->-r。\ requirements.txt(第7行))     使用缓存的https://files.pythonhosted.org/packages/a4/d2/68dacd66f28618462650e475f29663eb1f97cecdc3cf8f0881e52f425a3a/screen-1.0.1.tar.gz   已经满足的要求:c:\ users \ hp \ appdata \ roaming \ python \ python37 \ site-packages中的6> = 1.2(来自django-extensions == 2.1.4->-r。\ requirements.txt(第8行) )(1.12.0)   已经满足要求:c:\ python3 \ lib \ site-packages中的setuptools> = 30(来自flake8 == 3.6.0->-r。\ requirements.txt(第12行))(40.8.0)   已经满足的要求:colorama> = 0.2.4; sys_platform ==“ win32”在c:\ users \ hp \ appdata \ roaming \ python \ python37 \ site-packages中(来自httpie == 1.0.2->-r。\ requirements.txt(第14行))(0.4。 1)   安装收集的软件包:屏幕,django-excel-response2,django-admin,django-crispy-forms,django-extensions,django-filter,psycopg2,whitenoise,django-heroku,djangorestframework,pyflakes,pycodeg,flakey, urllib3,idna,请求,httpie,parso,jedi,pep8,Pillow,psycopg2-binary,pyparsing,pydotplus,taggit-selectize     正在运行setup.py安装屏幕...错误       从命令c:\ users \ hp \ desktop \ crowdsocial \ venv_windows \ scripts \ python.exe -u -c“ import setuptools,tokenize; file ='C:\ Users \ HP \ AppData \ Local \ Temp \ pip-install-f890mboe \ screen \ 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 \ HP \ AppData \ Local \ Temp \ pip-record-5lhghcc6 \ install-record.txt-单一版本-外部管理-编译:       运行安装       运行构建       运行build_py       创建版本       创建build \ lib.win32-3.7       创建build \ lib.win32-3.7 \ screen       复制screen \ compat.py-> build \ lib.win32-3.7 \ screen       复制screen \ old_str_util.py-> build \ lib.win32-3.7 \ screen       复制screen__init__.py-> build \ lib.win32-3.7 \ screen       运行build_ext       建立'screen.str_util'扩展       错误:需要Microsoft Visual C ++ 14.0。使用“ Microsoft Visual C ++生成工具”获取它:https://visualstudio.microsoft.com/downloads/

----------------------------------------
  

命令   “ c:\ users \ hp \ desktop \ crowdsocial \ venv_windows \ scripts \ python.exe -u -c   “导入设置工具,   标记化; 文件 ='C:\ Users \ HP \ AppData \ Local \ Temp \ pip-install-f890mboe \ screen \ setup.py'; f = getattr(标记化,   '打开',打开)(文件);代码= f.read()。replace('\ r \ n',   '\ n'); f.close(); exec(compile(code, file ,'exec')))“安装   --record C:\ Users \ HP \ AppData \ Local \ Temp \ pip-record-5lhghcc6 \ install-record.txt   --single-version-externally-managed --compile“在C:\ Users \ HP \ AppData \ Local \ Temp \ pip-install-f890mboe \ screen \

中失败,错误代码为1

1 个答案:

答案 0 :(得分:0)

您应该先阅读错误消息:

  

需要Microsoft Visual C ++ 14.0。使用“ Microsoft Visual C ++生成工具”获取它: