Set up a virtualenv for Python 3
Make sure you have installed virtualenv.
-
Type:
virtualenv --no-site-packages -p /usr/bin/python3 {directory_name}
Now your default /bin/pip and /bin/python commands will be Python 3.
Written by Brandon
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Related Tags
#python
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#