我想使用我自己的virtualenv,它是由Ubuntu 14.04中的conda创建的。但问题是,在使用cd命令更改目录时,virtualenv被切换到base。 conda activate py2 # using own virtualenv 'py2'
cd ..
# Then, the virtualenv will be deactivated and eventually switched to base env. 如何在显式输入conda deactivate之前连续使用自己的virtualenv
我在使用pyenv-virtualenv激活虚拟环境时遇到了一些问题。当我用pyenv激活一个环境时,它看起来像是工作了。但是,python版本并没有改变。激活它的唯一方法是手动运行相应文件夹中的激活脚本: /usr/bin/python
➜ ~ pyenv activate test_env
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behav
我运行:
pyenv activate new_app
我得到了:
Failed to activate virtualenv.
Perhaps pyenv-virtualenv has not been loaded into your shell properly.
Please restart current shell and try again.
我正在尝试遵循这个教程:
其他信息:
bash-3.2$ python --version
Python 3.6.0
bash-3.2$ pyenv version
3.6.0 (set by /Users/me/Projects/fl
最近,我试了一试哦,我的zsh,一切看起来都很好,直到我尝试了虚拟化和虚拟包装。当我在普通bash上激活virtualenv (例如,测试)时,我将看到虚拟化名称如下:
(test)abc@abc:
但是,当我切换到zsh时,我看不到virtualenv名称。尽管如此,我还是在我的zsh插件中添加了virtualenv和虚拟包装器。我还检查了虚拟服务器的激活文件,它包含:
f [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
_OLD_VIRTUAL_PS1="$PS1"
if [
我正在使用virtualenv来切换我的python dev env。但是当我运行workon my_env时,我遇到这样的错误消息:
Error: deactivate must be sourced. Run 'source deactivate'
instead of 'deactivate'.
Usage: source deactivate
removes the 'bin' directory of the environment activated with 'source
activate' from PATH
我已经下载了Catalina的Mac OS Beta新版本。现在我应该开始使用Zsh了。但是当我想要在Atom中运行一个Angular项目时,我收到了这样一条消息:“默认的交互式外壳现在是zsh。要更新您的帐户以使用zsh,请运行chsh -s /bin/zsh。有关更多详细信息,请访问https://support.apple.com/kb/HT208050。”我已经在使用zsh终端了,但是他找不到ng命令。
我有一个装有python3.5的windows7操作系统。
我必须将python版本升级到3.6。
我已经下载并安装了python包。
之前,我使用powershell运行了以下命令来更改虚拟环境中的python版本:
virtualenv env3 -p C:\Users\me\AppData\Local\Programs\Python\Python36-32\python.exe
但是,当我尝试运行上述命令时,收到以下错误:
virtualenv : The term 'virtualenv' is not recognized as the name of a cmdle