Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 86440  / 1 Year ago, thu, march 30, 2023, 2:07:57

I have different versions of python installed, python 2.7 being the default and 3.2 the second. Now I want to install pyramid to the 3.2 installation. How can I do this?
Just using pip to install pyramid does not work, so how can I change the version it is downloading to?


More From » python

 Answers
3

You have two options, but either way, you need to get easy_install-3.2. Since it doesn't seem to be packaged, you have to install it yourself. Fortunately that's easy. And you should also get python3-pkg-resources, which is packaged:



sudo apt-get install python3-pkg-resources
wget http://python-distribute.org/distribute_setup.py
sudo python3 distribute_setup.py


Now you can just use easy_install-3.2 to install Pyramid, or go ahead and install pip in Python3.



OPTION 1:



sudo easy_install-3.2 pyramid


OPTION 2:



sudo easy_install-3.2 pip
sudo pip-3.2 install pyramid

[#40369] Friday, March 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antoccasiona

Total Points: 430
Total Questions: 127
Total Answers: 131

Location: Netherlands
Member since Sat, Jun 26, 2021
3 Years ago
;