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

How to run Pylint with PyCharm

You can set up Pylint to work with PyCharm by following the following steps: Install pylint: $ pip install pylint Locate your pylint installation folder: $ which pylint # MacOS/Linux /usr/local/bin/pylint # This is just a possible output – check yours <!–> $ where pylint # Windows %LocalAppData%\Programs\Python\Python36-32\Scripts\pylint.exe # Possible location Open the PyCharm settings … Read more

Kivy error (python 2.7) : sdl2 import error

Problem It is looking for the Kivy dependencies (e.g. sdl2) in your virtualenv. Solution I have encountered the same problem. I did the following and it solved the problem. Environment Windows 10 PyCharm Community Python 3.5 Kivy dependencies installed (docutils, pygments, pypiwin32, kivy.deps.sdl2, kivy.deps.glew, kivy.deps.gstreamer) and for Python 3.5+ (kivy.deps.angle) PyCharm IDE Open the project … Read more

Run Flask CLI command with PyCharm debugger

PyCharm’s “Flask server” configuration only calls the flask run command, it doesn’t provide a way to call other commands. To do that, create a regular “Python” configuration that runs the flask command with the arguments you want. Create a “Python” configuration and give it a name. Select “Module name” instead of “Script path” and type … Read more