pypi

No matching distribution found for multiple packages

こ雲淡風輕ζ 提交于 2020-08-19 06:19:12
问题 Suddenly I get a lot of errors while trying to use my previously working (for many months) requirements file. I tried to go to the pypi.org and get the same 404 error. Is there something wrong with my setup? > pip install -r requirements.txt Collecting get==2019.4.13 (from -r requirements.txt (line 4)) Cache entry deserialization failed, entry ignored Exception: requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/get/ If I remove line get==2019.4.13

Python - Import package modules before as well as after setup.py install

社会主义新天地 提交于 2020-06-25 10:15:28
问题 Assume a Python package (e.g., MyPackage ) that consists of several modules (e.g., MyModule1.py and MyModule2.py ) and a set of unittests (e.g., in MyPackage_test.py ). . ├── MyPackage │ ├── __init__.py │ ├── MyModule1.py │ └── MyModule2.py ├── README.md ├── requirements.txt ├── setup.py └── tests └── MyPackage_test.py I would like to import functions of MyModule1.py within the unittests of MyPackage_test.py . Specifically, I would like to import the functions both before as well as after