我尝试使用pip install yfinance安装yfinance,我得到了:
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'd:\\users\\myself\\anaconda3\\lib\\site-packages\\numpy\\core\\multiarray.cp36-win_amd64.pyd'
Consider using the '--user' option or check the permissions.然后尝试了conda install -c ranaroussi yfinance,得到了:
UnsatisfiableError: The following specifications were found to be in conflict:
- scipy
- yfinance -> numpy >=1.15 -> blas 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl >=2019.4,<2020.0a0 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl-service >=2,<3.0a0
Use "conda info <package>" to see the dependencies for each package.你知道怎么回事吗我怎么安装它的?提前感谢!
发布于 2020-08-08 02:44:08
pip 案例1:
来源:Permission denied error by installing matplotlib
Linux / macOS
在您的终端中,您可以只为您的用户安装包,如下所示:
pip install <package> --user或
您可以使用终端上的su或sudo来将包安装为
sudo pip install <package>视窗
在命令提示符中,您可以只为用户安装包,如下所示:
pip install <package> --user或
通过以下步骤,您可以将包安装为管理员:
Run This Program As An Administrator
P/s:您没有权限/权限,因此系统阻止您通过pip安装,您需要成为管理员。
conda 案例2:
此消息告诉您,that所需的库/包版本与现有的预装版本有冲突。一个解决方案是为它创建另一个环境。
来源:Anaconda - UnsatisfiableError: The following specifications were found to be in conflict
为Python 3创建一个新的conda环境:
conda create -n your_virtual_env python=3.7为Python 2.7创建一个新的conda环境:
conda create -n your_virtual_env python=2.7激活它:
conda activate your_virtual_env或者,对于Windows上的旧的conda版本:
activate your_virtual_env在Unix上(包括Mac ):
source activate your_virtual_env一旦激活,安装您的软件包:
conda install yfinancehttps://stackoverflow.com/questions/63311269
复制相似问题