我使用的是python 3.6和pipenv 2018.05.18。
我想用pipenv安装pyside2,但是我不知道怎么做。
我尝试在Qt's tutorial中用pipenv替换pip,但不起作用。
pipenv install --index-url=http://download.qt.io/snapshots/ci/pyside/5.11/latest pyside2 --trusted-host download.qt.io此命令失败。
我尝试将http://download.qt.io/snapshots/ci/pyside/5.11/latest作为源代码添加到我的管道文件中,但也不起作用。
[[source]]
url = "http://download.qt.io/snapshots/ci/pyside/5.11/latest"
verify_ssl = false
name = "qt"我为该尝试添加到Pipfile中的代码。
你对我怎么做有什么想法吗?
发布于 2018-06-22 21:35:03
您可以使用Pipfile中的scripts部分。例如
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
[requires]
python_version = "3.6"
[scripts]
install_pyside2 = "python -m pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.11/latest pyside2 --trusted-host download.qt.io"然后,只需运行pipenv run install_pyside2
https://stackoverflow.com/questions/50970206
复制相似问题