Code Monkey home page Code Monkey logo

Comments (6)

arigoldx avatar arigoldx commented on September 3, 2024 2

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.

arigoldx avatar arigoldx commented on September 3, 2024

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.

Sailandsee avatar Sailandsee commented on September 3, 2024

I couldn't work it out, then I watched this video, which is awesome https://www.youtube.com/watch?v=APOPm01BVrk

from starter-python.

taffy-nay avatar taffy-nay commented on September 3, 2024

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.

domincl avatar domincl commented on September 3, 2024

@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.

darrendbutler avatar darrendbutler commented on September 3, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.