当前位置: 首页 > 工具软件 > pystan > 使用案例 >

anaconda 安装 pystan 和 fbprophet 失败经验总结(时间序列分析python第三方库)采坑无数

艾成益
2023-12-01

1、首先安装pystan库

一定要使用conda 命令,不要使用conda 命令

我是这样写的 

(base) PS C:\Users\xxxxx> conda install pystan
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\ptmind\miniconda3

  added / updated specs:
    - pystan


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pystan-2.19.0.0            |   py37hcce6980_0        11.9 MB
    ------------------------------------------------------------
                                           Total:        11.9 MB

The following NEW packages will be INSTALLED:

  pystan             pkgs/main/win-64::pystan-2.19.0.0-py37hcce6980_0

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates    conda-forge::ca-certificates-2019.9.1~ --> pkgs/main::ca-certificates-2019.8.28-0
  conda                                         conda-forge --> pkgs/main


Proceed ([y]/n)? y


Downloading and Extracting Packages
pystan-2.19.0.0      | 11.9 MB   | ######################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

完美安装

2、安装fbprophet 

我这里是使用 pip 安装的 

(base) PS C:\Users\********> pip install fbprophet
Collecting fbprophet
  Using cached https://files.pythonhosted.org/packages/33/fb/ad98d46773929079657706e6b2b6e366ba6c282bc2397d8f9b0ea8e5614c/fbprophet-0.5.tar.gz
Requirement already satisfied:

******************************************
******************************************

Collecting lunardate>=0.1.5 (from fbprophet)
  Using cached https://files.pythonhosted.org/packages/4e/7e/377a3cbba646ec0cf79433ef858881d809a3b87eb887b0901cb83c66a758/lunardate-0.2.0-py3-none-any.whl
Collecting convertdate>=2.1.2 (from fbprophet)
  Using cached https://files.pythonhosted.org/packages/74/83/d0fa07078f4d4ae473a89d7d521aafc66d82641ea0af0ef04a47052e8f17/convertdate-2.1.3-py2.py3-none-any.whl
Collecting holidays>=0.9.5 (from fbprophet)
Collecting setuptools-git>=1.2 (from fbprophet)
  Using cached https://files.pythonhosted.org/packages/05/97/dd99fa9c0d9627a7b3c103a00f1566d8193aca8d473884ed258cca82b06f/setuptools_git-1.2-py2.py3-none-any.whl

******************************************
******************************************

Collecting ephem<3.8,>=3.7.5.3 (from convertdate>=2.1.2->fbprophet)
  Using cached https://files.pythonhosted.org/packages/55/44/2e76572f24ee62c3fd0d1dc592e6ad227d019bcead4******************************************
******************************************
Building wheels for collected packages: fbprophet
  Building wheel for fbprophet (setup.py) ... done
  Stored in directory:
******************************************
******************************************
Successfully built fbprophet
Installing collected packages: lunardate, ephem, convertdate, holidays, setuptools-git, fbprophet
Successfully installed convertdate-2.1.3 ephem-3.7.7.0 fbprophet-0.5 holidays-0.9.11 lunardate-0.2.0 setuptools-git-1.2

有 ******* 的部分被我删减了一部分代码。安装prophet库首先会安装一些依赖库。静静等待就可以了。

我的网络环境可以翻墙,据说和网络环境也有关系。

另外,我的镜像是使用清华大学的镜像。据传也可能和镜像有关系。

 

 

 类似资料: