You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python模块安装后无法运行:'solc-select'未被识别为命令及pip无效分发警告问题求助

Troubleshooting Your solc-select & pip Issues on Windows 10 x64

Let's work through your problems step by step—we've got two main issues to tackle: those annoying "invalid distribution -ip" warnings, and the fact that solc-select isn't being recognized as a command. Here's how to fix both:

1. Resolve the "Ignoring invalid distribution -ip" Warnings

This error pops up because there's a corrupted or malformed package directory lingering in your Python site-packages folder. That -ip folder is almost certainly a leftover from a failed pip or package installation. Here's how to clean it up:

  • Open File Explorer and navigate to C:\Python310\lib\site-packages
  • Look for a folder named exactly -ip (it’ll probably be near the top since it starts with a dash)
  • Either delete the folder entirely, or rename it to something like -ip-broken (just in case you need to revert later)
  • After removing/renaming, open a fresh CMD window and run pip list—the warnings should disappear. You can also upgrade pip to ensure everything’s in working order:
    python -m pip install --upgrade pip
    

2. Fix the "'solc-select' is not recognized" Error

Even though pip says solc-select is installed, the command isn’t showing up because the folder containing the solc-select executable isn’t in your system’s PATH environment variable. Here are a few straightforward solutions:

Option 1: Add the Scripts Folder to Your System PATH

  • First, confirm the path exists: Run this in CMD to check if solc-select.exe is present:
    dir C:\Users\Jester\AppData\Roaming\Python\Python310\Scripts
    
  • If you see solc-select.exe in the output, add this path to your system PATH:
    • Right-click "This PC" → Properties → Advanced System Settings → Environment Variables
    • In the "System Variables" section, find the Path variable, click Edit → New
    • Paste C:\Users\Jester\AppData\Roaming\Python\Python310\Scripts and click OK to save all changes
    • Critical note: Close all open CMD/VS Code windows and reopen them—PATH changes won’t take effect in already running terminals.
  • Now try running solc-select use 0.8.7 again—it should work as expected.

Option 2: Run solc-select Directly via Python

If you don’t want to adjust environment variables, you can run the module directly using Python’s -m flag:

python -m solc-select use 0.8.7

Option 3: Force-Reinstall solc-select to Fix Corruption

If the above steps don’t resolve the issue, force a reinstall of solc-select to ensure all files are properly placed:

pip install --force-reinstall solc-select

内容的提问来源于stack exchange,提问作者koko91kon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 00:08:15