24👍
try something like this, here C:/Python36/python.exe give the full address of python3 executable
virtualenv env -p C:/Python36/python.exe
7👍
Using full path will address this issue.
$ virtualenv --python=/usr/bin/python3 testenvironment
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/nansari/testenvironment/bin/python3
Not overwriting existing python script /home/nansari/testenvironment/bin/python (you must use /home/nansari/testenvironment/bin/python3)
Installing setuptools, pip, wheel...done.
$ which python3
/usr/bin/python3
$ python --version
Python 2.7.14 :: Anaconda, Inc.
$
- Can't login to Django /admin interface
- Sometimes request.session.session_key is None
- Use of unicode in Django
- Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory
- How to display "x days ago" type time using Humanize in Django template?
2👍
if you have already python in you PATH, sure it works by default with python, no python3.
you just have to run virtualenv -p python env
- How to emit SocketIO event on the serverside
- How to download a filefield file in django view
- In django, is there a way to directly annotate a query with a related object in single query?
- Django rest auth email instead of username
- Use of unicode in Django
0👍
Try running this command virtualenv -p python env
i.e without specifying python3, i had same problem while using pycharm and after running this command on the terminal the error was resolved.
- Create a canonical "parent" product in Django Oscar programmatically
- Creation of dynamic model fields in django
- Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory
- Performance, load and stress testing in Django
- In django, is there a way to directly annotate a query with a related object in single query?
- What is the right way to use angular2 http requests with Django CSRF protection?
- Django – authentication, registration with email confirmation
- How to set timeout for urlfetch in Google App Engine?
Source:stackexchange.com