pip install pyscf,其他包 - 抛出TypeError:parse()得到一个意外的关键字参数'transport_encoding'

时间:2018-05-29 19:28:58

标签: python pip gentoo

我正在尝试将pyscf和其他模块一起安装到我的本地用户实例/home/user/.local/中,但是我需要安装许多软件包,我收到以下错误。

我也尝试过遵循建议here

Error: Found the synthetic property @transitionMessages. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.

2 个答案:

答案 0 :(得分:1)

您打算使用哪个Python版本和pip?

如果您尝试使用python 2的pip安装python3模块,则可能会发生此错误。要使用特定的pip版本,请尝试:

# Make sure you have python3 installed, for example on CentOS:
sudo yum install python36 -y

# Install & Upgrade pip3
sudo python36 -m pip install --upgrade pip

# Validate pip3 installation:
sudo python3.6 -m ensurepip
#  Successfully installed pip-10.0.1 setuptools-39.0.1

# Clear commands cache (might be required if getting in bash: /usr/bin/pip3: No such file or directory)
hash -r

pip2 -V
# pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

which pip2
# /usr/local/bin/pip2

pip3 -V
# pip 19.0.3 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

which pip3
# /usr/local/bin/pip3

# Install your Python3 module:
sudo /usr/local/bin/pip3 install pyscf

答案 1 :(得分:0)

我遇到了同样的错误。我使用以下命令

pip 9.0.1更新为pip 10.0.1
conda install pip

对我有用。