草庐IT

python - `pip install -e` 的用例是什么?

当我需要处理我的一个宠物项目时,我只需像往常一样克隆存储库(gitclone),编辑我需要的内容,运行测试,更新setup.py版本、提交、推送、构建包并将它们上传到PyPI。使用pipinstall-e有什么好处??我应该使用它吗?它将如何改进我的工作流程? 最佳答案 我发现pipinstall-e在同时开发产品和依赖项时非常有用,我经常这样做。例子:您使用Django为众多客户构建网站,还开发了一个名为locations的内部Django应用程序,您可以在许多项目中重复使用它,因此您可以在pip上使用它并对其进行版本控制。当您处

python - Pip install forked github-repo

我正在做一个项目,需要一些与sklearn包不同的功能。我已经fork了repo并推送了我的更改。我知道我可以通过pip从github安装:pipinstallgit+git://github.com/wdonahoe/scikit-learn-fork.git@master然后我可以使用setup.py安装软件包:pythonsetup.pyinstall但是,我对执行此步骤后的操作感到困惑。运行setup.py会在.../dist-packages/中创建一些.egg-info文件夹和.egg-links文件,但我不确定如何处理它们。理想情况下,我想在.../projects/my

python - Pip install forked github-repo

我正在做一个项目,需要一些与sklearn包不同的功能。我已经fork了repo并推送了我的更改。我知道我可以通过pip从github安装:pipinstallgit+git://github.com/wdonahoe/scikit-learn-fork.git@master然后我可以使用setup.py安装软件包:pythonsetup.pyinstall但是,我对执行此步骤后的操作感到困惑。运行setup.py会在.../dist-packages/中创建一些.egg-info文件夹和.egg-links文件,但我不确定如何处理它们。理想情况下,我想在.../projects/my

pip intall jupyter出现 error: subprocess-exited-with-error 求帮助。

 安装环境操作系统:WindowsPython:3.10.7安装虚拟环境的时候出错pipinstalljupyter出现错误Collectingpywinpty>=1.1.0 Usingcachedpywinpty-2.0.10.tar.gz(26kB) Installingbuilddependencies...done Gettingrequirementstobuildwheel...done Preparingmetadata(pyproject.toml)...error error:subprocess-exited-with-error ×Preparingmetadata(py

python - 为python3.3安装pip

我从PackageIndex>pip1.2.1下载了pip然后我使用安装它sudopython3.3setup.pyinstall不过,当我尝试使用pip-3.3时,终端会提示-bash:pip-3.3:commandnotfound但是,pip-2.7运行良好。我也试过curl-Ohttp://python-distribute.org/distribute_setup.pysudopython3.3distribute_setup.pysudopython3.3-measy_installpip但是pip-3.3还是不行。如何为Python3.3安装pip?注意有一个相关的线程Ho

python - 为python3.3安装pip

我从PackageIndex>pip1.2.1下载了pip然后我使用安装它sudopython3.3setup.pyinstall不过,当我尝试使用pip-3.3时,终端会提示-bash:pip-3.3:commandnotfound但是,pip-2.7运行良好。我也试过curl-Ohttp://python-distribute.org/distribute_setup.pysudopython3.3distribute_setup.pysudopython3.3-measy_installpip但是pip-3.3还是不行。如何为Python3.3安装pip?注意有一个相关的线程Ho

python - 从 Jupyter Notebook 中安装 pip 包不起作用

当我在JupyterNotebook中运行!pipinstallgeocoder时,我得到与在终端中运行pipinstallgeocoder相同的输出,但是当我尝试时地理编码器包不可用导入它。我使用的是Ubuntu14.04、Anaconda4.0.0和pip8.1.2安装地理编码器:!pipinstallgeocoderThedirectory'/home/ubuntu/.cache/pip/http'oritsparentdirectoryisnotownedbythecurrentuserandthecachehasbeendisabled.Pleasecheckthepermi

python - 从 Jupyter Notebook 中安装 pip 包不起作用

当我在JupyterNotebook中运行!pipinstallgeocoder时,我得到与在终端中运行pipinstallgeocoder相同的输出,但是当我尝试时地理编码器包不可用导入它。我使用的是Ubuntu14.04、Anaconda4.0.0和pip8.1.2安装地理编码器:!pipinstallgeocoderThedirectory'/home/ubuntu/.cache/pip/http'oritsparentdirectoryisnotownedbythecurrentuserandthecachehasbeendisabled.Pleasecheckthepermi

【Python】pip install selenium报错

出错场景在pycharm终端中下载selenium,使用pipinstallselenium命令下载,报如下错误:报错内容pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host='files.pythonhosted.org',port=443):Readtimedout.PSC:\Users\86159\PycharmProjects\pytest>pipinstallseleniumCollectingselenium Downloadingselenium-4.1.3-py3-none-any.wh

python升级或降级pip版本以及镜像源的设置

修改pip的版本安装各种库时,会有各种报错。如下报错:AttributeError:‘NoneType’objecthasnoattribute‘bytes’Non-zeroexitcode(2)listindexoutofrangeDistutilsPlatformError:MicrosoftVisualC++14.0isrequired.trytorunthiscommandfromthesystemterminal.Makesurethatyouusethecorrectversionof'pip'都可以通过升级或降低pip的版本来解决。在pycharm底部的terminal终端上执行