- Notifications
You must be signed in to change notification settings - Fork332
Installing Python packages in Jupyter Notebooks
When installing packages using pip, therecommended approach is to usepython -m pip install
instead ofpip install
. Refer theInstalling Python Modules documentation.
Any command prefixed with!
is treated as a shell command in Jupyter cells. Thus!pip install <module>
is treated as a simple shell command that translates topip install <module>
. However the recommendation is to usepython -m pip install <module>
. To get this desired behavior one must use%pip install <module>
However when installing packages in Jupyter into a conda environment, use ofconda install
is preferred overpip install
. Hence its highly recommended that one use%conda install
in jupyter notebooks when dealing with Conda enviornments.
See here for further detailshttps://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension