与here相同的问题;仍然缺少其他东西。
安装:
a
〜/ .profile:
$ sudo pacman -S python-virtualenvwrapper
...
$ which virtualenvwrapper.sh
/usr/bin/virtualenvwrapper.sh
采购:
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
一切都很好;不幸的是,任何其他会话都看不到包装程序命令。重新登录后,它们仍然不可见。我在做什么错了?
UPD:
$ source .profile
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/premkproject
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/postmkproject
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/initialize
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/premkvirtualenv
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/postmkvirtualenv
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/prermvirtualenv
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/postrmvirtualenv
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/predeactivate
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/postdeactivate
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/preactivate
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/postactivate
virtualenvwrapper.user_scripts creating /home/alexey/.virtualenvs/get_env_details
[alexey@stovepipebox ~]$ workon
[alexey@stovepipebox ~]$
修改了我的pacman
;我只需要取消注释.bashrc
中的source /usr/bin/virtualenvwrapper.sh
语句,然后
.bashrc
特定于Arch。