简体   繁体   中英

Error for virtualenvwrapper / Ubuntu 16.04

I followed this guide https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04 and get a error message: error message

When I try "$ workon name_of_virtual_env" I get ": command not found"

I can't understand from where the problem have come and what the error message mean. I tried a bit of experiment and get so far:

  • The problem in the last line.
  • The file in the last line exist on the specified path.
  • The module is installed for python3.
  • No other versions of python never have been installed before.

Setting this PATH in my .bashrc:

export VIRTUALENVWRAPPER_PYTHON=my_path_to_python
export VIRTUALENVWRAPPER_VIRTUALENV=my_path_to_virtualenv

solved my problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM