我在我的 Windows 10 机器上使用 Pipenv 时遇到问题。最初,我在尝试运行pipenv install <module>
并遵循此答案时遇到超时错误,我禁用了 Windows Defender。
这消除了超时错误,然后它似乎成功地将包安装在~/.virtualenvs但在创建Pipfile.lock时出现错误:
Adding flask to Pipfile's [packages]...
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
File "C:\Users\Edgar\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 402, in resolve_deps
req_dir=req_dir
File "C:\Users\Edgar\AppData\Roaming\Python\Python36\site-packages\pipenv\utils.py", line 250, in actually_resolve_deps
req = Requirement.from_line(dep)
File "C:\Users\Edgar\AppData\Roaming\Python\Python36\site-packages\pipenv\vendor\requirementslib\models\requirements.py", line 704, in from_line
line, extras = _strip_extras(line)
TypeError: 'module' object is not callable
我尝试安装requests
and flask
,结果相同。
- python : Python 3.6.4 :: Anaconda, Inc.
- pip:来自 c:\users\edgar\anaconda3\lib\site-packages\pip 的 pip 18.0 (python 3.6)
- pipenv:pipenv,版本 2018.7.1
关于问题/解决方案的任何线索?