Tôi làm theo các bước để thiết lập virtualenv + virtualenvwrapper:virtualenv - lệnh workon không tìm thấy
$ sudo apt-get install python3-pip
$ sudo pip3 install virtualenv
$ sudo pip3 install virtualenvwrapper
$ mkdir ~/.virtualenvs
$ export WORKON_HOME=~/.virtualenvs
$ VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
$ source /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv venv
$ virtualenv venv
Cho đến nay nó đã làm việc tốt nhưng tôi khởi động lại vỏ và sau đó tôi đã cố gắng workon venv
và bây giờ nó nói: command not found
Thay vào đó, bạn có thể phải thêm mục này vào '.bash_profile'. –