我正在尝试使用Django-Money将MoneyField添加到我的 Django 应用程序中。
根据要求,我需要安装py-moneyed v0.4或更高版本。
我检查了py-moneyed但它没有提到如何安装 py-moneyed?
有人可以帮助我在我的环境中安装py-moneyed和Django-Money吗?有没有一个pip或easy_install包可以做到这一点?
当我尝试运行pip3 install pytorch或pip 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) 我收到这个错误。还有更多。
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) 在尝试使用以下命令安装 scikit-learn 时:
python -m pip install sckit-learn
Run Code Online (Sandbox Code Playgroud)
它抛出一个错误:
找不到满足安装要求的版本(从版本:) 找不到匹配的安装发行版
虽然,site_packages文件夹install.py中存在。
如何消除这个问题?
我使用python创建了一个模块。我想将它发布到pip和PyPi,以便其他人可以轻松下载和使用它。我该怎么做?
我一直在尝试运行一个导入 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
我正在尝试在 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) 我花了几个小时试图解决这个问题.
我做以下事情:
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网站上传图像时,都会收到错误消息.
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) pip ×11
python ×10
scikit-learn ×2
anaconda ×1
django ×1
heroku ×1
installation ×1
keyboard ×1
linux ×1
pypi ×1
python-2.7 ×1
python-3.x ×1
pytorch ×1
ubuntu ×1
virtualenv ×1
windows ×1