0

When I install virtualenv and activate it which python returns my /usr/bin/python. I read here it is because I have python alias in my bash startup scipt and virtualenv doesn't work with it.

However, I can't find word python neither in .profile or .bashrc file in Kubuntu 17.10. What should I do to make virtualenv use virtual environment and where to find and delete those aliases?

5
  • What does type -a python show? Commented Apr 24, 2018 at 12:43
  • In my project_env it returns python is /usr/bin/python and also when I deactivate it.
    – Hrvoje T
    Commented Apr 24, 2018 at 12:52
  • first thing - improve your shebang - #!/usr/bin/env/python
    – Drako
    Commented Apr 24, 2018 at 13:20
  • You mean #!/usr/bin/env python Commented Apr 24, 2018 at 14:34
  • After you've activated the virtual env, what does your PATH look like? Also, what is path/to/project_env/bin/python -V?
    – hoefling
    Commented Apr 25, 2018 at 23:05

0

You must log in to answer this question.

Browse other questions tagged .