Running Jupyter notebook in a virtualenv: installed sklearn module not available

前端 未结 7 2106
小蘑菇
小蘑菇 2020-12-13 09:33

I have installed a created a virtualenv machinelearn and installed a few python modules (pandas, scipy and sklearn) in that environment.

When I run

7条回答
  •  醉梦人生
    2020-12-13 10:37

    You can still install jupyter inside your virtual-environment if you have created your virtual env using:

    python -m venv --system-site-packages path/to/my-venv
    

    Simply do this:

    activate-your-env
    pip install -I jupyter
    

    And you are now ready to go

    jupyter notebook
    

提交回复
热议问题