'"PIP is in the PYTHONPATH. Please change directory so it is not."

I am working on Windows. I installed mypy and added it to external tools. When I launch the tool, I get this message:

C:\Users\MediaMonster\anaconda3\envs\APIP\Scripts\mypy.exe Downloads\bad_code.py
C:\Users\MediaMonster\anaconda3\envs\APIP is in the PYTHONPATH. Please change directory so it is not.

Process finished with exit code 1

Can you help me fix this problem?

I also enclosed the settings for the external tool.

ToolParameter



Solution 1:[1]

Your PYTHONPATH stores important file paths for your Python system.

For some reason, MyPy doesn't want APIP in the path. You need to figure out how to remove APIP from the path, typically through your Windows user settings or from the command line. Some potential tips.

Hope this helps. LMK

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aidan O'Gara