#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목안녕하세요. 가상환경이란?2019-02-08 09:59
작성자

주피터 노트북 코드를 그대로 파이참으로 복사 실행하니 이상한 점이 몇가지 있어 구글링 후 질문드립니다.


1.주피터 노트북 파일 안에서 pip install하던것을

파이참에서는 그 부분을 지우고 

cmd 에서 직접 pip install 을 해줘야 함. 가상 환경이라 그런가요?


2.주피터노트북의 경우 : BeautifulSoup쓰는 과정에서 soup = BeautifulSoup(html, 'lxml')  그냥썻고 에러없이 잘돌아감


     파이참의 경우      :lxml 부분에서


 bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?


라는 에러가 나와서 cmd에서 pip install lxml하니 해결, 


(https://stackoverflow.com/questions/24398302/bs4-featurenotfound-couldnt-find-a-tree-builder-with-the-features-you-requeste 참조하여 해결함)


제가 생각한 해결원인 : Jupyter는 Anaconda 에 lxml이 내장되어있어 따로 pip을 할필요가 없었고 

                         Pycharm 은 직접 install을 해줘야하는 건가요?


댓글