标签: pip

如何安装Py-Moneyed?

我正在尝试使用Django-Money将MoneyField添加到我的 Django 应用程序中。

根据要求,我需要安装py-moneyed v0.4或更高版本。

我检查了py-moneyed但它没有提到如何安装 py-moneyed?

有人可以帮助我在我的环境中安装py-moneyedDjango-Money吗?有没有一个pipeasy_install包可以做到这一点?

python django pip python-module

-2
推荐指数
1
解决办法
1239
查看次数

使用 pip 安装 PyTorch 时出错 - 无法构建轮子

当我尝试运行pip3 install pytorchpip install pytorch

Collecting pytorch
  Using cached pytorch-1.0.2.tar.gz (689 bytes)
Building wheels for collected packages: pytorch
  Building wheel for pytorch (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/chaitanya/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3v4wd97t/pytorch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3v4wd97t/pytorch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8rsdyb8e
       cwd: /tmp/pip-install-3v4wd97t/pytorch/
  Complete output (5 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-3v4wd97t/pytorch/setup.py", line 15, in <module>
      raise …
Run Code Online (Sandbox Code Playgroud)

python linux pip python-3.x pytorch

-2
推荐指数
1
解决办法
2235
查看次数

Python - 安装键盘错误 - 语法无效

我试图使用 python 命令行在 python 中安装键盘,但我碰巧在下图中发现了一个错误,我是一个带有 python32 的窗口 7 64 位并将其设置为路径。

1

python keyboard pip

-2
推荐指数
1
解决办法
134
查看次数

我无法安装人脸识别库

我收到这个错误。还有更多。

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\user\AppData\Local\Temp\pip-install-ra1cvy6u\dlib_fbc984c811b2401a9d6e9de52ebc927f\build\temp.win-amd64-3.10\Release\ZERO_CHECK.vcxproj]
  Checking Build System
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\user\AppData\Local\Temp\pip-install-ra1cvy6u\dlib_fbc984c811b2401a9d6e9de52ebc927f\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
  Building Custom Rule C:/Users/user/AppData/Local/Temp/pip-install-ra1cvy6u/dlib_fbc984c811b2401a9d6e9de52ebc927f/dlib/CMakeLists.txt
  base64_kernel_1.cpp
  bigint_kernel_1.cpp
  bigint_kernel_2.cpp
  bit_stream_kernel_1.cpp
  entropy_decoder_kernel_1.cpp
  entropy_decoder_kernel_2.cpp
  entropy_encoder_kernel_1.cpp
  entropy_encoder_kernel_2.cpp
  md5_kernel_1.cpp
  tokenizer_kernel_1.cpp
  unicode.cpp
  test_for_odr_violations.cpp
  sockets_kernel_1.cpp
  bsp.cpp …
Run Code Online (Sandbox Code Playgroud)

python windows pip face-recognition visual-studio

-2
推荐指数
1
解决办法
1538
查看次数

没有找到与安装匹配的发行版

在尝试使用以下命令安装 scikit-learn 时:

python -m pip install sckit-learn
Run Code Online (Sandbox Code Playgroud)

它抛出一个错误:

找不到满足安装要求的版本(从版本:) 找不到匹配的安装发行版

虽然,site_packages文件夹install.py中存在。 如何消除这个问题?

pip scikit-learn

-3
推荐指数
1
解决办法
2万
查看次数

将模块发布到 pip 和 PyPi

我使用python创建了一个模块。我想将它发布到pip和PyPi,以便其他人可以轻松下载和使用它。我该怎么做?

python pip pypi

-3
推荐指数
1
解决办法
698
查看次数

安装特定版本的 sklearn

我一直在尝试运行一个导入 sklearn 的示例代码。当我尝试使用最新版本运行它时,出现以下错误。

用户警告:尝试在使用 0.23.1 版时从 0.21.3 版中解开估算器管道。这可能会导致破坏代码或无效结果。使用风险自负。

在此之后程序停止执行。许多线程建议我应该使用 sklearn 的相同版本,即 0.21.3。然后我尝试卸载 sklearn 并在我的命令行中运行这个命令。

pip install sklearn==0.21.3
Run Code Online (Sandbox Code Playgroud)

但后来我收到错误消息,

找不到满足要求的版本

为了在 Windows 上使用 pip 正确安装 sklearn 0.21.3,我需要做什么?

附加信息:我在 Windows 10 上使用 python 3.7

python pip scikit-learn

-3
推荐指数
1
解决办法
672
查看次数

由于requirements.txt 中的问题,Heroku 中的部署失败

我正在尝试在 heroku 上部署我的 Flask 应用程序。我使用的是 Conda,并使用命令“pip freeze>requirements.txt”来生成requirements.txt 文件。但是当我将代码推送到heroku git时,它不断显示requirements.txt错误。我还注意到我的requirements.txt 有点奇怪。请帮助我解决这个问题。

这是我的Requirements.txt 文件:

argon2-cffi @ file:///D:/bld/argon2-cffi_1596630042503/work
attrs==19.3.0
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
backports.functools-lru-cache==1.6.1
bleach @ file:///home/conda/feedstock_root/build_artifacts/bleach_1588608214987/work
brotlipy==0.7.0
certifi==2020.6.20
cffi @ file:///D:/bld/cffi_1595805794566/work
chardet==3.0.4
chart-studio==1.1.0
click==7.1.2
colorama==0.4.3
colorlover==0.3.0
cryptography @ file:///D:/bld/cryptography_1595349005639/work
cufflinks==0.17.3
dash @ file:///home/conda/feedstock_root/build_artifacts/dash_1596870105808/work
dash-core-components @ file:///home/conda/feedstock_root/build_artifacts/dash-core-components_1596203643601/work
dash-html-components==1.0.3
dash-renderer @ file:///home/conda/feedstock_root/build_artifacts/dash-renderer_1596203647496/work
dash-table @ file:///home/conda/feedstock_root/build_artifacts/dash-table_1596867885662/work
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
Flask==1.1.2
Flask-Compress==1.5.0
future==0.18.2
gunicorn==20.0.4
idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1593328102638/work
importlib-metadata @ file:///D:/bld/importlib-metadata_1593211580034/work
ipykernel @ file:///D:/bld/ipykernel_1595447084845/work/dist/ipykernel-5.3.4-py3-none-any.whl
ipython @ file:///D:/bld/ipython_1596256504166/work
ipython-genutils==0.2.0
ipywidgets==7.5.1
itsdangerous==1.1.0
jedi==0.15.2
Jinja2==2.11.2
jsonschema==3.2.0
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1594732094290/work
jupyter-core==4.6.3
MarkupSafe==1.1.1 …
Run Code Online (Sandbox Code Playgroud)

python pip heroku requirements.txt anaconda

-3
推荐指数
1
解决办法
1707
查看次数

Ubuntu 11.04:使用PIP将PIL安装到virtualenv中

我花了几个小时试图解决这个问题.

我做以下事情:

sudo apt-get install python-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libfreetype6 libfreetype6-dev
mkvirtualenv -p python2.7 --no-site-packages foobar
pip install PIL
Run Code Online (Sandbox Code Playgroud)

每当我尝试在django-cms网站上传图像时,都会收到错误消息.

python ubuntu pip virtualenv python-imaging-library

-4
推荐指数
1
解决办法
8574
查看次数

pip install pyaudio 错误 cl.exe 失败

C:\Program Files (x86)\Microsoft Visual C++ Build Tools>pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
  Running setup.py install for pyaudio ... error
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\cybercry\\AppData\\Local\\Temp\\pip-build-tder68r3\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\cybercry\AppData\Local\Temp\pip-0p059g11-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    copying src\pyaudio.py -> build\lib.win-amd64-3.7
    running build_ext
    building '_portaudio' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 …
Run Code Online (Sandbox Code Playgroud)

python installation compiler-errors pip python-2.7

-6
推荐指数
1
解决办法
4392
查看次数

-13
推荐指数
1
解决办法
2万
查看次数