Requirements.txt greater than equal to and then less than?

Yes. The pip manual [doc] has a section on the format of “requirement specifiers“. These are documented in PEP-508 [pep] and PEP-440 [pep]: The comparison operator determines the kind of version clause: ~=: Compatible release clause ==: Version matching clause !=: Version exclusion clause <=, >=: Inclusive ordered comparison clause <, >: Exclusive ordered comparison clause ===: Arbitrary … Read more

Delete unused packages from requirements file

You can use Code Inspection in PyCharm. Delete the contents of your requirements.txt but keep the empty file. Load your project in, PyCharm go to Code -> Inspect code…. Choose Whole project option in dialog and click OK. In inspection results panel locate Package requirements section under Python (note that this section will be showed … Read more

pip freeze creates some weird path instead of the package version

It looks like this is an open issue with pip freeze in version 20.1, the current workaround is to use: pip list –format=freeze > requirements.txt In a nutshell, this is caused by changing the behavior of pip freeze to include direct references for distributions installed from direct URL references. You can read more about the … Read more

How to use requirements.txt to install all dependencies in a python project

If you are using Linux OS: Remove matplotlib==1.3.1 from requirements.txt Try to install with sudo apt-get install python-matplotlib Run pip install -r requirements.txt (Python 2), or pip3 install -r requirements.txt (Python 3) pip freeze > requirements.txt If you are using Windows OS: python -m pip install -U pip setuptools python -m pip install matplotlib

Is there a way to list pip dependencies/requirements?

Check out my project johnnydep! Installation: pip install johnnydep Usage example: $ johnnydep requests name summary ————————- ———————————————————————- requests Python HTTP for Humans. ├── certifi>=2017.4.17 Python package for providing Mozilla’s CA Bundle. ├── chardet<3.1.0,>=3.0.2 Universal encoding detector for Python 2 and 3 ├── idna<2.7,>=2.5 Internationalized Domain Names in Applications (IDNA) └── urllib3<1.23,>=1.21.1 HTTP library with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)