答案 0 :(得分:0)
现在我理解“env”模式,事实上,我可以使用virtualenv的命令
激活
去做。 例如:
E:\ python_virtualenv> cd E:\ python_virtualenv \ mycode \ Scripts
E:\ python_virtualenv \ mycode的\脚本>激活
(mycode)E:\ python_virtualenv \ mycode \ Scripts> echo %GOOGLE_APPLICATION_CREDENTIALS% d:\ analyze_sentiment \ MyFirstProject-bbe4f7bccb98.json
事实上,“mycode”是“env”。