2016-07-06 3 views
0

Selenium을 설치했습니다. 테스트를 실행하려고하면 ImportError라는 오류가 발생합니다. 'selenium'모듈이 없습니다. OS는 Ubuntu 14.04 LTS 및 python 버전 3.4 (virtualenv를 통해)입니다. 셀레늄의Selinium이 설치되었지만 가져 오거나 사용할 수 없습니다. ImportError : 'selenium'이라는 모듈이 없습니다.

설치 : whereis에서 본

(p_live) [email protected] LTS:~/sites/site.com/source$ sudo pip3 install selenium 
[sudo] password for karthi: 
Downloading/unpacking selenium 
    Downloading selenium-2.53.6-py2.py3-none-any.whl (884kB): 884kB downloaded 
Installing collected packages: selenium 
Successfully installed selenium 
Cleaning up... 

셀레늄이 설치되어 : 어떤 이상한 이유로

(p_live) [email protected] LTS:~/sites/site.com/source$ whereis selenium 
selenium: /usr/local/selenium 

스팟 셀레늄

(p_live) [email protected] LTS:~/sites/site.com/source$ find selenium 
find: `selenium': No such file or directory 

는 다른 방법으로 그것을 가져 오는 시도를 doesnot 찾을 수 있습니다.

(p_live) [email protected] LTS:~/sites/site.com/source$ python 
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import selenium 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: No module named 'selenium' 
>>> 

왜 내가 가져올 수없는 이유가 무엇입니까?

답변

1

가상 환경에 selenium를 설치 sudo를 사용하지 마십시오 :

(p_live) $ pip3 install selenium 
+0

oofs..sudo 실수였다. 감사. – Blueice