본문 바로가기
Computer Science/TIL-Today I Learned

Virtualenv 에 tensorflow install ERROR !

by Tanya 탄야 2019. 9. 11.

1. tensorflow virtualenv 에 tensorflow 1.14 가 깔려있다는데 해보면 없다고 나온다. 

2. VirtualEnv : 나중에 code 를 다른 server 로 ship 하고 싶을때, 어떤 패키지 프로그램들이 필요했는지 쉽게 알기위해 사용한다. 다른 버전 충돌을 막기 위해서도 그렇다고 했던 것 같고.. 그럼 virtualenv 의 이름을 프로젝트 이름으로 보통 해놓는건가?

 

 

3. 그래서 rm-rf PATH/ENV 로 가상환경 지움

 

 

---

 

구세주 임모씨와의 통화 후..

 

내 defalut python version 이 뭔지 확인 후 pip 역시 그에 맞는 버전을 이용해 설치해야함을 알게되었다. 

 

이를테면 python3 가 깔려있었지만 내 default python version 은 2.7 이었고, 

이때 pip install 로 설치를 하면 2.7에 호환되는 텐서플로우 버전이 설치가 되어 python3 를 돌렸을땐 tensorflow 가 없었다. 

 

때문에 pip3 install (pkg) 가 아닌 pip install (pkg) 를 쓰면 파이썬 2.7과 파이썬3이 있는 상태에서 python2.7에 대한 패키지 설치가 되었던 것. 

-

 

When you install python3 , pip3 gets installed. ... So pip is a link to to pip3 if there is no other version of python installed(other than python3). pip generally points to the first installation.

 

-

 

https://docs.python.org/ko/3/installing/index.html

-m 명령어를 쓸 수도 있다. 

반응형

'Computer Science > TIL-Today I Learned' 카테고리의 다른 글

opencv, cuda, nvidia driver install  (1) 2019.09.19
Image Segmentation  (0) 2019.09.16
L1 L2 Norm, Loss, Regularization  (1) 2019.09.10
CNN에서의 Deconvolution  (0) 2019.09.09
Linux bash shell on Windows 10  (0) 2019.09.08