Ask Your Question
2

Is there a way to prevent a newly installed package from using a cached version of another package?

asked 2022-07-05 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-07 04:00:00 +0000

lalupa gravatar image

Yes, you can use the "--no-cache-dir" option when installing the new package. This will ensure that no cached version of any package is used during the installation process. The command to install a package without caching is:

pip install --no-cache-dir <package-name>

For example:

pip install --no-cache-dir pandas

This will install the "pandas" package without using any cached version of any package.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-05 11:00:00 +0000

Seen: 7 times

Last updated: Dec 07 '21