Windows10上的virtualenv给出错误:路径python3不存在 [英] virtualenv on Windows10 gives error:The path python3 does not exist
问题描述
我正在试用教程将 Cloud Datastore 与 Python 结合使用,但是当我运行时:
I'm trying the tutorial Using Cloud Datastore with Python, but when I run:
virtualenv -p python3 env
我有一个错误:
The path python3 (from --python=python3) does not exist
我通过运行检查了 python 版本:
I checked the python version by running:
python -V
它给了我:
Python 3.5.2 :: Anaconda 4.1.1 (64-bit)
我运行 set python
来查看环境变量,这给了我:
I run set python
to see the Environment variables, which gives me:
Environment variable python not defined
令人讨厌的是,这是一台我没有管理员权限的实验室机器,我需要给 IT 管理员发送电子邮件以更改环境变量.
An annoying thing is that, this is a lab machine which I don't have the admin right, I need to email the IT Admin to change the Environment variables.
尝试过:virtualenv -p python env
它给了我:
The path python (from --python=python) does not exist
在修复环境变量之前似乎没有办法.
Seems there is no way around until the environment variable is fixed.
推荐答案
阅读完这篇教程,我找到了适合我的案例的解决方法:
After reading this tutorial, I found the workaround for my case:
virtualenv --python "C:\\Anaconda3\\python.exe" env
这篇关于Windows10上的virtualenv给出错误:路径python3不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!