I am trying to run someone's code and I hitting an issue with their imports
from abc import ABC, abstractmethod
I tried doing a pip install abc
but that did not find any package named abc.
Has anyone used this package before? If so, was abc
the correct package name to install? If not, what is the correct package name? Using Python 2.7.13
How do I Install a Specific Version of a Python Package? To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1. 3 .
Go to https://pypi.org/search/?q=abc
This queries all official registered python packages. It seems there a package abc which is orphened.
If someone else from your company or community wrote a package abc, there are two ways. Either yoy create a local repository and add abc there. or you install the package manually by creating a wheel file and install it with pip install
For the record, I was able to search pypi and find a package that worked. I installed abcplus pip install abcplus
and that allowed me to execute the import statement.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With