NamHoKi / Algorithm-Study

Algorithm Study & Memo
1 stars 0 forks source link

python pip install error #1

Open NamHoKi opened 2 years ago

NamHoKi commented 2 years ago

[요약]

python pip install error Error : pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 환경변수 추가 설정으로 해결


[에러]

-> Anaconda 설치 -> VScode 설치 -> Python 인터프리터 설치 -> 환경 변수에 Anaconda3\Scripts 경로 추가 -> pip install 이 잘 수행하는지 확인하기 위해 cmd - pip install matplotlib Error : pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 에러를 구글에 검색 -> 해결한 링크

[답변]


Windows 10의 경우 Anaconda 프롬프트뿐만 아니라 일반 cmd에서 pip를 사용하려는 경우. 3개의 환경 경로를 추가해야 합니다. 다음과 같이:

D:\Anaconda3 
D:\Anaconda3\Scripts
D:\Anaconda3\Library\bin 

대부분의 사람들은 D:\Anaconda3\Scripts만 추가합니다.

==> 환경변수 추가 후 pip install matplotlib


[테스트]

import matplotlib.pyplot as plt

plt.plot([1, 2, 3, 4])
plt.show()

[해결]

Figure_1

NamHoKi commented 1 year ago

window 10