pip不存在或无法在virtualen中执行

2024-04-24 17:21:03 发布

您现在位置:Python中文网/ 问答频道 /正文

当尝试使用pip在虚拟环境中安装flask时,我得到以下错误:

>(venv)username@Username-MacBook-Air ~/G/L/flaskTest> pip install Flask
>Failed to execute process '/Users/User/Google Drive/flaskTest/venv/bin/pip'. Reason:
>The file '/Users/username/Google Drive/flaskTest/venv/bin/pip' does not exist or could not         be executed.

这有什么原因吗?在


Tags: pipflaskbinvenv错误google虚拟环境username
2条回答

首先,尝试安装一个新的干净的虚拟环境。在

如果不起作用,请尝试安装pip,并使用easy_install pip

只是有同样的问题,导致我来这里。我刚创建了一个新的虚拟环境,却发现了这个错误。和你一样,我有一个祖先目录,里面有一个空格。重命名目录以消除空间后,一切正常。(总有一天我会找到那个虫子的!)试着把“谷歌硬盘”改成“谷歌硬盘”或“谷歌硬盘”,等等

相关问题 更多 >