简体   繁体   中英

Path to executable of MyPy plugin for PyCharm

I am trying to use the MyPy Plugin for Pycharm by Leinardi . I installed it via the official steps . In the settings, I am able to see Mypy, but "Path to Mypy exectuable:" is not set (there is only "Auto-detected:").

What do I put into "Path to Mypy exectuable:" - where is the Mypy exectuable installed to by default?

I am using a conda environment - I don't know if this is important. Also, when pressing "Test", I get the error, you can see below.

在此处输入图像描述

If you're on Mac or Windows:

where mypy

If you're on Linux:

which mypy

Then just copy and paste one of the outputs into the location in PyCharm.

Edit:

Based on your comment, which says that using a command above indicates that no executable could be found, I suggest looking at your IDE and system. It may be that MyPy is not installed:

mypy 未安装

If you don't see the pop up like in the image above, you can use steps here for Anaconda: https://anaconda.org/anaconda/mypy or uninstall the plugin and re-install it, allowing you to see the PyCharm popup.

Then you should be able to see it do its magic.

已安装 mypy

I had the same case as you and could solve the problem after I have installed mypy not only as a plugin but also with pip install in my virtual environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM