当我们用pip install + 库名时,出现了下面Requirement already satisfied的问题:
pip install pandas
Requirement already satisfied: pandas in c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages (1.5.1)
Requirement already satisfied: pytz>=2020.1 in c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages (from pandas) (2022.6)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages (from pandas) (2.8.2)
Requirement already satisfied: numpy>=1.21.0 in c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages (from pandas) (1.23.4)
Requirement already satisfied: six>=1.5 in c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)
PS D:\Workspaces\CodeProjects\PycharmProjects\ForecastBaseDate> pip install c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages pandas
对于这样的问题,解决办法就是在 pip install 后加 - -target=你所要添加的库文件地址(注意:target前为两个-,并且没有空格) 再加 库名
pip install --target=c:\users\danzel\appdata\local\programs\python\python310\lib\site-packages pandas
留言评论
暂无留言