Comments (6)
Ah I think I got it.
After reading deeper into the linked python docs for virtual environments, I think I was successful with a python3 -m venv env
followed by a source env/bin/activate
.
I'm gonna go with it and see what happens :)
from starter-python.
After clicking around a bit I found https://virtualenv.pypa.io/en/latest/installation/ which lead me to pip install virtualenv
(non-sudo, as per the link).
That said, virtualenv -p python3 env source env/bin/activate
didn't work:
~/src/starter-python [master] $ virtualenv -p python3 env source env/bin/activate
Running virtualenv with interpreter /usr/local/bin/python3
Already using interpreter /usr/local/opt/python/bin/python3.6
There must be only one argument: DEST_DIR (you gave env source env/bin/activate)
I simply cd'ed into the directory I'd just cloned.
from starter-python.
I couldn't work it out, then I watched this video, which is awesome https://www.youtube.com/watch?v=APOPm01BVrk
from starter-python.
I'm not sure if my issue is related at all, but when I try to activate the virtualenv I get
virtualenv: error: unrecognized arguments: source env/bin/activate
I'm not really sure what this is meant to mean.
from starter-python.
@taffy-nay virtualenv and source are two different commands. You should not get the error message unrecognized arguments: source env/bin/activate
if you issue them on two lines like this.
virtualenv -p python3 env
source env/bin/activate
I have submitted PR #9 to fix README.md
from starter-python.
I believe for windows, the command to activate your virtual environment is:
enviornmentName\Scripts\activate
The windows command isn't mentioned in the readMe. I ran this command on powershell.
from starter-python.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-python.