Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Installing Python packages in Jupyter Notebooks

Don Jayamanne edited this pageNov 15, 2021 ·1 revision

pip install vspython -m pip install

When installing packages using pip, therecommended approach is to usepython -m pip install instead ofpip install. Refer theInstalling Python Modules documentation.

!pip install vs%pip install

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>

%conda install

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.

More information

See here for further detailshttps://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/

Project Management

Contributing

Code Architecture

API

Features

FAQ and Troubleshooting

Misc

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp