C:\Users\danie01\fox\test\robotframework>pipenv install
Installing dependencies from Pipfile.lock (49d163)...
An error occurred while installing robotframework-seleniumlibrary==3.1.0! Will try again.
An error occurred while installing selenium==3.9.0! Will try again.
An error occurred while installing robotframework==3.0.2! Will try again.
An error occurred while installing psutil==5.4.3! Will try again.
================================ 4/4 - 00:00:00
Installing initially failed dependencies...
-------------------------------- 0/4 - 00:00:00
Could not import runpy module
ImportError: No module named 'runpy'
================================ 0/4 - 00:00:00
我最近为所有用户重新安装了Python,现在尝试运行pipenv install
时遇到了这个问题。为什么会这样?
Python 3.5即将发布。在上一条命令之后立即运行:
C:\Users\danie01\fox\test\robotframework>echo %PATH%
C:\Program Files\Python 3.5\;C:\Program Files\Python 3.5\Scripts\;blahblah
C:\Users\danie01\fox\test\robotframework>pipenv run python --version
Python 3.5.0
答案 0 :(得分:0)
我最近从3.5升级到3.7.3时遇到了同样的问题:
path
删除python的旧版本pip install pipenv
那么您应该可以运行pipenv install
。