- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
由于某种原因,我在使用最近才开始使用的 Pipenv 时遇到问题。似乎始终如一,每当我尝试使用 pipenv install
从 Pipfile 创建/安装虚拟环境时,我都会收到 Locking Failed 错误,然后是很多输出错误消息。我一直在尝试解决这个问题,更新 setuptools
和其他各种软件包,试图找出问题所在,但到目前为止我在网上找到的类似问题的解决方案都没有运气。
系统规范:2019 年 iMac大苏尔 11.1
点文件:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
fastapi = "*"
fastapi-utils = "*"
uvicorn = {extras = ["standard"], version = "*"}
sqlalchemy = "*"
pytesseract = "*"
pdf2image = "*"
pillow = "*"
cmake = "*"
pandas = "*"
python-multipart = "*"
dataclasses = "*"
psycopg2-binary = "*"
python-dotenv = "*"
pypdf2 = "*"
pipx = "*"
spacy = "*"
numpy = "*"
[requires]
python_version = "3.7.9"
错误消息的输出如下:
Creating a virtualenv for this project...
Pipfile: /Users/erbun/Documents/Lambda School/Labs/Lambda-School-Labs-human-rights-first-asylum-ds-a/Pipfile
Using /Users/erbun/.pyenv/versions/3.7.9/bin/python3.7m (3.7.9) to create virtualenv...
⠙ Creating virtual environment...created virtual environment CPython3.7.9.final.0-64 in 756ms
creator CPython3Posix(dest=/Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/erbun/Library/Application Support/virtualenv)
added seed packages: pip==20.3.3, setuptools==51.0.0, wheel==0.36.2
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
✔ Successfully created virtual environment!
Virtualenv location: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-2gd0gl5f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.4.1,<7.5.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0'
cwd: None
Complete output (75 lines):
Collecting setuptools
Using cached setuptools-52.0.0-py3-none-any.whl (784 kB)
Collecting cython>=0.25
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Processing /Users/erbun/Library/Caches/pip/wheels/20/85/35/22c2942bc726e15d643da43c441f83490117d7b06dc7c2e732/cymem-2.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.5.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Processing /Users/erbun/Library/Caches/pip/wheels/03/51/93/6a20938381704ae7b6093cc8e9c4ebb09d44579d2c3fa1a26c/murmurhash-1.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting thinc<7.5.0,>=7.4.1
Using cached thinc-7.4.5.tar.gz (1.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-zwryakhp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=1.0.1,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0'
cwd: None
Complete output (49 lines):
Collecting setuptools
Using cached setuptools-52.0.0-py3-none-any.whl (784 kB)
Collecting cython>=0.25
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Processing /Users/erbun/Library/Caches/pip/wheels/03/51/93/6a20938381704ae7b6093cc8e9c4ebb09d44579d2c3fa1a26c/murmurhash-1.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Processing /Users/erbun/Library/Caches/pip/wheels/20/85/35/22c2942bc726e15d643da43c441f83490117d7b06dc7c2e732/cymem-2.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting preshed<3.1.0,>=1.0.1
Using cached preshed-3.0.5.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting blis<0.8.0,>=0.4.0
Using cached blis-0.7.4.tar.gz (2.8 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/tmp46jpx0j4
cwd: /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-install-_rpx54j6/blis
Complete output (21 lines):
init_dgelsd failed init
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 150, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 130, in _get_build_requires
self.run_setup()
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 24, in <module>
import numpy
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/tmp46jpx0j4 Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-zwryakhp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=1.0.1,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output.
----------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 764, in <module>
main()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 760, in main
dev=parsed.dev)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 741, in _main
resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 709, in resolve_packages
requirements_dir=requirements_dir,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 692, in resolve
req_dir=requirements_dir
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1403, in resolve_deps
req_dir=req_dir,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1108, in actually_resolve_deps
resolver.resolve()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 823, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 268, in _resolve_one_round
their_constraints.extend(self._iter_dependencies(best_match))
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 383, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 229, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 351, in get_legacy_dependencies
download_dir, ireq, wheel_cache
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 306, in resolve_reqs
results = resolver._resolve_one(reqset, ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 339, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 287, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 509, in prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
self._setup_isolation(finder)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 68, in _setup_isolation
"Installing build dependencies"
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/build_env.py", line 202, in install_requirements
call_subprocess(args, spinner=spinner)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pipenv.patched.notpip._internal.exceptions.InstallationError: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-2gd0gl5f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.4.1,<7.5.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output.
非常感谢您提供解决此问题的任何帮助。提前致谢!
最佳答案
这是我在 BigSur 更新中也注意到的。尽管在 GitHub 上有一个活跃的问题,但暂时的解决方法是在尝试锁定 Pipfile 或安装任何包之前运行以下命令。注意:这只会在您运行此命令的终端中有效。
export SYSTEM_VERSION_COMPAT=1
这将允许向后兼容,并且可以通过在运行上面的导出命令之前和之后运行以下命令来测试
sw_vers
关于python - Pipenv 始终无法锁定并产生大量错误输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65888840/
我在 Chrome 上做了一些测试,requestAnimationFrame 产生了 61 fps 而 setTimeOut( callback, 0 ) 产生了 233 fps。 如果一个人想要超
当我调试代码时,我发现 GCC 和 Clang 都为 0.0/0.0 产生 nan,这是我所期望的,但 GCC 产生的 nan 将符号位设置为 1,而Clang 将其设置为 0(如果我没记错的话,与
Closed. This question does not meet Stack Overflow guidelines。它当前不接受答案。 想改善这个问题吗?更新问题,以便将其作为on-topic
我在 R Studio 中有一个时间序列。现在我想计算这个系列的log()。我尝试了以下方法: i <- (x-y) ii <- log(i) 但是我得到以下信息:Warning message: I
我有兴趣了解 JavaScript 的内部结构.我试图阅读 SpiderMonkey 的来源和 Rhino但是绕过我的头是相当复杂的。 我问的原因是:为什么像 (![]+[])[+!![]+[]] 生
我们在 Delphi 中使用标准 TWebbrowser 组件,该组件在内部使用 mshtml.dll。另外,我们使用注册表来确保页面使用新的渲染引擎( Web-Browser-Control-Spe
我必须实现一个序列化/反序列化类,并且我正在使用 System.Xml.Serialization 。我有一些IList类型属性并希望在 IList 中序列化解码属于具有特定区域性信息的列表的所有十进
我有一个 Java 应用程序,它读取包含 SQL 查询的 JSON 文件,并使用 JDBC 在数据库上触发它们。 现在我有 5 万个这样的文件,我需要生成 5 万个独立线程来读取每个文件并将它们上传到
我正在尝试将 TensorFlow 入门页面上的示例线性回归程序调整为二次回归。为此,我只是添加了另一个变量并更改了函数。然而,这似乎会导致 NaN 值。这是我的代码: import numpy as
申请后KernelPCA到我的数据并将其传递给分类器 ( SVC ) 我收到以下错误: ValueError: Input contains NaN, infinity or a value too
这背后的想法是,如果我的数据库中存在登录名(正确的用户名+密码),我将重定向到一个页面,并且在进行此身份验证后,他们可以将消息存储在文本文件中。代码非常简单尽管我不确定为什么会收到 IllegalSt
我有一个返回 log10 值的函数。在将它们转换为正常数字时,出现溢出错误。 OverflowError: (34, 'Numerical result out of range') 我检查了日志值,
nosetests 抛出一个 ImportError,尽管我认为这是一个正确配置的 virtualenv。 ==============================================
我是这个网站的新手,所以如果我做错了什么,我提前道歉。当我尝试使用 kivy-garden 的 ScrollLabel 时,它给了我一个错误。基本上我正在尝试创建一个控制台日志,并且我需要能够在文本框
任何人都对 MDSJ 有任何经验?以下输入仅产生 NaN 结果,我不明白为什么。文档非常稀少。 import mdsj.Data; import mdsj.MDSJ; public class MDS
我有一个非常简单的 scala jcuda 程序,它添加了一个非常大的数组。一切都编译和运行得很好,直到我想从我的设备复制超过 4 个字节到主机。当我尝试复制超过 4 个字节时,我收到 CUDA_ER
我正在使用 Hero 组件在两个页面之间创建动画。Hero 组件用于包装一个 Image 小部件(没问题)和一个 Container 小部件(有问题)。 抛出以下溢出错误: ══╡ EXCEPTIO
我无法理解页面 https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/void 中的这一段: This ope
当在 Angular 中使用不立即触发事件的异步管道时(http 请求或任何有延迟的可观察对象),第一个值为 null为什么会这样?如何避免这种情况? 第一个变化: SimpleChange {
如果一个导入的库生成了一个会 panic 的 goroutine 怎么办?在这种情况下,开发人员无法阻止程序退出。 就像在这段代码中一样,使用延迟恢复调用一个错误的库没有帮助,因为该库正在生成一个 p
我是一名优秀的程序员,十分优秀!