반응형
상황
파이썬 가상환경 생성 해당 가상환경에 pip 를 통해 selenium을 설치하였으나, jupyter notebook에서는 라이브러리를 찾을 수 없는 경우
#Jupyter notebook
import selenium
에러메시지 : ModuleNotFoundError: No module named 'selenium'
해결
conda install selenium를 통해서 해결
(venv) ~ conda install pip
conda install selenium
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: ~/anaconda3
added / updated specs:
- selenium
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-4.12.0 | py39hecd8cb5_0 14.5 MB
selenium-3.141.0 |py39h9ed2024_1000 818 KB
------------------------------------------------------------
Total: 15.2 MB
The following NEW packages will be INSTALLED:
selenium pkgs/main/osx-64::selenium-3.141.0-py39h9ed2024_1000
The following packages will be UPDATED:
conda 4.10.3-py39hecd8cb5_0 --> 4.12.0-py39hecd8cb5_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
conda-4.12.0 | 14.5 MB | ################################################################## | 100%
selenium-3.141.0 | 818 KB | ################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
반응형
'개발 > 버그 픽스' 카테고리의 다른 글
[OSX] #001 pip: command not found (0) | 2022.03.19 |
---|---|
[Ubuntu] #001 Command 'pip' not found (0) | 2022.03.19 |
댓글