make all使用时出现no such option: --install-option的错误

文章讲述了遇到pip安装问题时,发现Python3.x的pip版本不再支持--install-option。作者通过降级pip版本(如从23.2.1降到22.2.1)解决了问题,并分享了安装numpy和typing-extensions的具体版本号。
摘要由CSDN通过智能技术生成

如题,出现这样的问题,首先就怀疑了pip啥问题

查了一些资料觉得这个比较靠谱

python 3.x - pip3 install does not seem to support --install-option anymore - Stack Overflow

简单就是说,pip降级就行。

python -m pip install pip==22.2.1

我原本的pip是23.2.1,我反正就随便选了一个22的版本安装了。

上面的错误就消失了!

希望对大家有帮助!

(顺便我这里记录一个东西, numpy==1.23.0, typing-extensions==4.5.0)

  • 7
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
The error message you are seeing indicates that the linker is unable to find the library "cJSON" (-lcJSON) that your program is dependent on. This error typically occurs when the library is not installed or not properly linked. To resolve this issue, you need to make sure that the cJSON library is installed on your system and that the linker can find it. Here are some possible steps to fix the problem: 1. Install cJSON library: Check if the cJSON library is installed on your system. If not, you can download it from the official website or use a package manager like apt-get (for Ubuntu) or homebrew (for macOS) to install it. 2. Link the library: Once the cJSON library is installed, you need to make sure that the linker can find it during the compilation process. You can do this by specifying the library path using the "-L" option, and the library name using the "-l" option. For example: ```bash gcc -o myprogram myprogram.c -L/path/to/cJSON -lcJSON ``` Make sure to replace "/path/to/cJSON" with the actual path where the cJSON library is installed on your system. 3. Check library search path: If the cJSON library is installed in a standard location, such as "/usr/lib" or "/usr/local/lib", you may not need to specify the library path explicitly. In this case, you can check if the library search path is properly configured by running the following command: ```bash ldconfig -p | grep cJSON ``` If the library is listed, it means that the linker can find it. Otherwise, you may need to add the library path to the system's library search path configuration. By following these steps, you should be able to resolve the "cannot find -lcJSON" error and successfully compile your program.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值