python pip install pipenv失败,Windows上的Pipenv失败,并出现安装wrapt的错误(Python 3.6.8)...

I'm starting on a new python project and when I try to install my virtual environment I keep getting a failure with wrapt. I've read and tried all solutions I could find here and other forums for a couple of days but without success.

Could you think of what the problem could be to give it another go? This is pretty strange as the same project and code works in other Windows machines which are similar...

D:\git_project>python --version

Python 3.6.8

D:\git_project>pip --version

pip 19.3.1 from c:\python36\lib\site-packages\pip (python 3.6)

D:\git_project>pipenv --version

pipenv, version 2018.11.27.dev0

D:\git_project>python -m pipenv install

Creating a virtualenv for this project…

Pipfile: D:\git_project\Pipfile

Using C:/Python36/python.exe (3.6.8) to create virtualenv…

[=== ] Creating virtual environment...Already using interpreter C:\Python36\python.exe

Using base prefix 'C:\\Python36'

New python executable in C:\Users\admin\.virtualenvs\git_project-UBvgpj5x\Scripts\python.exe

Installing setuptools, pip, wheel...

done.

Running virtualenv with interpreter C:/Python36/python.exe

Successfully created virtual environment!

Virtualenv location: C:\Users\admin\.virtualenvs\git_project-UBvgpj5x

Installing dependencies from Pipfile.lock (1e32a5)…

An error occurred while installing wrapt==1.11.2 --hash=sha256:565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1! Will try again.

================================ 84/84 - 00:02:14

Installing initially failed dependencies…

[InstallError]: File "C:\Python36\lib\site-packages\pipenv\cli\command.py", line 251, in install

[InstallError]: site_packages=state.site_packages

...

...

[pipenv.exceptions.InstallError]: File "c:\users\admin\.virtualenvs\git_project-ubvgpj5x\lib\genericpath.py", line 30, in isfile

[pipenv.exceptions.InstallError]: st = os.stat(path)

[pipenv.exceptions.InstallError]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

[pipenv.exceptions.InstallError]: ----------------------------------------

[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:

This is a link to the complete output in case you can find something useful to try and clarify what's happening?

https://pastebin.com/raw/8gdUUZN8

Thank you!!

解决方案

Fixed setting the following variable before running: pipenv --three install

set WRAPT_INSTALL_EXTENSIONS=false

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值