Can't you install pip3.5 in Python 3.5 environment?

Asked 2 years ago, Updated 2 years ago, 65 views

http://tryhelloworld.co.kr/courses/%EC%9E%A5%EA%B3%A0%EB%A5%BC-%ED%99%9C%EC%9A%A9%ED%95%9C-%EC%9B%B9%EC%82%AC%EC%9D%B4%ED%8A%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0/lessons/%EC%9E%A5%EA%B3%A0-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0 I'm practicing after watching the lecture.

The environment is ubuntu14.04 as a server, and Python 2.7 version seems to be installed first (not for sure) Therefore, when the python 2.7 version was deleted, there was a dependency problem in the system, so it was not deleted, so it was installed at the same time as the newly installed python 3.5.

I opened it because you said that the progress should be made in pip3 version.

After running django-admin with pip3, the following message appeared while running manage.py.

ImportError: No module named django

I checked the version of pip3 to catch the error above

The version of pip is 1.5.4, and pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.5) The version of pip3 I installed earlier was pip 8.1.1 from /usr/local/lib/python 3.4/dist-packages (python 3.4)

That's what it says, but the version is much higher. I wonder if it's because of the version.

Is it possible to change the Python version of pip3 to 3.5 instead of 3.4 automatically matched?

python3.4 -m pip --version

python3.5 -m pip --version

python django

2022-09-21 17:03

2 Answers

Did you do python3 manage.py runserver after pip3 install django?

You didn't do python manage.py runserver, did you?


2022-09-21 17:03

It's a self-answer!

What I was curious about is that the pip3 version is matched with 3.4 The low 1.5.4 pip version is matched by Python 3.5.

There was an error when I wanted to run server with Python 3.5.

I looked it up and I was able to upgrade my pip Haha

sudo python3.5 -m pip install --upgrade pip After upgrading to

sudo python3.5 -m pip -V If you check the version with the , it's upgraded well

Thank you to Jung Doo-sik for answering!


2022-09-21 17:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.