Try ERPNext Buy Support Partners Foundation

Virtualenv issue

virtualenv -p /usr/bin/python3
Already using interpreter /usr/bin/python3
You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR

Options:
–version show program’s version number and exit
-h, --help show this help message and exit
-v, --verbose Increase verbosity.
-q, --quiet Decrease verbosity.
-p PYTHON_EXE, --python=PYTHON_EXE
The Python interpreter to use, e.g.,
–python=python2.5 will use the python2.5 interpreter
to create the new environment. The default is the
python2 interpreter on your path (e.g.
/usr/bin/python2)
–clear Clear out the non-root install and start from scratch.
–no-site-packages DEPRECATED. Retained only for backward compatibility.
Not having access to global site-packages is now the
default behavior.
–system-site-packages
Give the virtual environment access to the global
site-packages.
–always-copy Always copy files rather than symlinking.
–unzip-setuptools Unzip Setuptools when installing it.
–relocatable Make an EXISTING virtualenv environment relocatable.
This fixes up scripts and makes all .pth files
relative.
–no-setuptools Do not install setuptools in the new virtualenv.
–no-pip Do not install pip in the new virtualenv.
–no-wheel Do not install wheel in the new virtualenv.
–extra-search-dir=DIR
Directory to look for setuptools/pip distributions in.
This option can be used multiple times.
–download Download preinstalled packages from PyPI.
–no-download, --never-download
Do not download preinstalled packages from PyPI.
–prompt=PROMPT Provides an alternative prompt prefix for this
environment.
–setuptools DEPRECATED. Retained only for backward compatibility.
This option has no effect.
–distribute DEPRECATED. Retained only for backward compatibility.
This option has no effect.

You’re halfway there.

virtualenv -p /usr/bin/python3
This allows you to specify which version of Python you’d like to create a virtual environment for.

virtualenv -p /usr/bin/python3 myproject
This last bit <myproject> is the name of the directory/virtualenv youd’d like to create in the current folder.

source myproject/bin/activate
Finally, this will activate the virtual directory for you and ready to install requirements and so on.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.