pandas-dev安装(如何安装Pandas1.3.0)



我在Pandas 1.3.0.dev0+1779.gdcc2a8f801版本上看到了一个新的实现方法(read_xml(,我想使用它。问题是我还没有找到安装Pandas开发版本的方法。我目前正在使用Python3和pip,并尝试从其源代码库(Pandas开发页面(

我该怎么处理?也许是使用Conda还是自己编译?我不知道该怎么做…

您可以使用pip:

pip install git+https://github.com/pandas-dev/pandas.git

如果你使用的是jupyter笔记本电脑,只需运行:

!pip install git+https://github.com/pandas-dev/pandas.git

它将安装最后一个版本:

Collecting git+https://github.com/pandas-dev/pandas.git
Cloning https://github.com/pandas-dev/pandas.git to /tmp/pip-req-build-lpoyr70w
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Successfully built pandas
Installing collected packages: pandas
Attempting uninstall: pandas
Found existing installation: pandas 1.2.5
Uninstalling pandas-1.2.5:
Successfully uninstalled pandas-1.2.5
Successfully installed pandas-1.4.0.dev0+108.gfa6b96e128

如果你想要一个特定的版本,只需在末尾添加@,然后选择你想要的提交签出。

Pip不会有这个版本,而且这个版本的Pandas还没有二进制文件,所以我建议从源代码构建它。

你可以在这里下载源代码,提取它,然后构建它

这里给出了构建它的说明。

您可以使用安装panda的最新开发版本

pip install git+https://github.com/pandas-dev/pandas