简体   繁体   中英

How do I install a python package from a .py file?

I am using Jupyter notebook and is in desperate need of installing the "copy" package.

https://docs.python.org/3.6/library/copy.html

I found the github link as a py file: https://github.com/python/cpython/blob/3.6/Lib/copy.py

The standard method of "!pip install copy" doesn't work.

Could not find a version that satisfies the requirement copy (from versions: ) No matching distribution found for copy

Thanks

You dont have to install the copy module because it is part of the standard library. Just use import copy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM