Skip to content

Instantly share code, notes, and snippets.

@Manuel4131
Created April 16, 2018 14:39
Show Gist options
  • Select an option

  • Save Manuel4131/407da9d8b43c7c2b4b0a911122e42e8b to your computer and use it in GitHub Desktop.

Select an option

Save Manuel4131/407da9d8b43c7c2b4b0a911122e42e8b to your computer and use it in GitHub Desktop.
Common python module install & env setup
virtual environment
# python run module as script
python -m
python3 -m venv myvenv # not working on ubuntu
```error
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
```error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-venv
To be continued
@Manuel4131
Copy link
Copy Markdown
Author

  • tds_instruction
    Create Virtual Environment
sudo apt-get install pip 
pip install virtualenv
virtualenv -p /usr/bin/python3.6 venv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment