@@ -25,27 +25,27 @@ If you installed the Python 3 version of pip, you should type this instead:
25
25
26
26
Now, whenever you start a new project, you can create a virtual environment for it. Start by creating and moving into a new project directory:
27
27
28
- $ mkdir ~/WeVoteServer3.5
28
+ $ mkdir ~/VirtualEnvironments
29
29
30
- $ cd ~/WeVoteServer3.5
30
+ $ cd ~/VirtualEnvironments
31
31
32
32
Now, create a virtual environment within the project directory by typing:
33
33
34
- $ virtualenv --python=/usr/bin/python3 WeVoteServer
34
+ $ virtualenv --python=/usr/bin/python3.11 WeVoteServer3.11
35
35
36
36
Now activate this new virtual environment for WeVoteServer:
37
37
38
38
$ cd ~/PythonProjects/WeVoteServer/
39
- $ source ~/WeVoteServer3.5/WeVoteServer /bin/activate
39
+ $ source ~/VirtualEnvironments/ WeVoteServer3.11 /bin/activate
40
40
(WeVoteServer) $ export PATH="TBD/Postgres.app/Contents/Versions/latest/bin:$PATH"
41
41
42
42
43
43
## Installing Python 3 on Linux
44
44
45
- (WeVoteServer ) $ pip3 install django
46
- (WeVoteServer ) $ pip3 install --upgrade pip
47
- (WeVoteServer ) $ pip3 install -r requirements.txt
48
- (WeVoteServer ) $ python3 -m pip install pyopenssl pyasn1 ndg-httpsclient
45
+ (WeVoteServer3.11 ) $ pip3 install django
46
+ (WeVoteServer3.11 ) $ pip3 install --upgrade pip
47
+ (WeVoteServer3.11 ) $ pip3 install -r requirements.txt
48
+ (WeVoteServer3.11 ) $ python3 -m pip install pyopenssl pyasn1 ndg-httpsclient
49
49
50
50
If installing requirements.txt does not work because of different dependencies, attempt install -r requirements.txt several times.
51
51
Also,relying on IDEs like PyCharm may help installing the packages.
0 commit comments