gpt4 book ai didi

windows - pipenv 在安装依赖项时找不到模块 'runpy'

转载 作者:可可西里 更新时间:2023-11-01 10:41:41 26 4
gpt4 key购买 nike

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

最佳答案

我最近在从 3.5 迁移到 3.7.3 时遇到了同样的问题:

然后你应该可以运行 pipenv install

关于windows - pipenv 在安装依赖项时找不到模块 'runpy',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51428432/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com