有一次,我试着用pip安装玩偶,但是没有找到pip。
can't open file 'pip' [errno 2] no such file or diretory
当我做"py pip安装pygame“时
所以我尝试了4次重新安装python,并且尝试了几乎所有可能的安装方式,但是它不起作用。因此,我尝试手动安装pip,我尝试了所有可能的方法,但都有相同的错误:
[errno 9]: bad file descriptor.
我试过很多次了。
在此之后,我尝试通过pycharm安装,当我尝试安装时,它显示“没有包安装工具,安装”,当我点击安装时,它会显示相同
当用pip安装时,pip install sqlalchemy一切都是好的。
当我用诗安装时,我得到了错误
➜ backend poetry add sqlalchemy
Using version ^1.4.23 for SQLAlchemy
Updating dependencies
Resolving dependencies... (0.1s)
AttributeError
'EmptyConstraint' object has no attribute 'allows'
at ~/.poetry/lib/poetry/_vend
我正在尝试使用以下命令安装诗歌
curl -sSL https://install.python-poetry.org | python3 -
但它失败了,但有以下例外:
例外:这个python的构建不能在不使用符号链接的情况下创建venv。
下面是详细说明错误的文本。
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will
我使用诗歌作为python的依赖管理器,当我试图使用诗歌安装依赖关系时:
poetry install
我知道这个错误:
$ poetry install
Installing dependencies from lock file
[AttributeError]
'bool' object has no attribute 'strip'
任何可能导致此错误发生的想法,因为它不允许依赖项安装.
pyproject.toml实例
[tool.poetry]
name = "orex"
version = "0.1.0"
des
最近,我已经安装了Pyenv和诗歌,并希望创建一个新的Python3.8项目。我使用适当的Pyenv命令将python的global和local版本设置为3.8.1 (例如,pyenv global 3.8.1)。当我在终端中运行pyenv version时,输出与预期的一样是3.8.1.。
现在,问题是,当我使用诗歌(poetry new my-project)创建一个新的project (poetry new my-project)时,生成的pyproject.toml文件创建一个使用python2.7的项目:
[tool.poetry]
name = "my-project
我试图在Ubuntu20.04.3LTS上使用按推荐的方式安装诗歌:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
当我这样做的时候,上面写着:
content.com/python-poetry/poetry/master/get-poetry.py | python -
Command 'python' not found, did you mean:
command 'python3' from deb
使用python诗歌,我想根据安装过程中传递的附加程序来安装不同的包版本。我想
# when extra == 'a', install numpy == 1.20.0
$ poetry install -E a
# when extra == 'b', install numpy == 1.19.0
$ poetry install -E b
我用下面的toml文件试了一下
[tool.poetry]
name = "demo-poetry"
version = "0.1.0"
description = ""
尝试使用诗歌安装软件包,并获得:
Current Python version (3.10.4) is not allowed by the project (>=3.8,<3.10).
我想做的是:
poetry env use python3.8
或
poetry env use 3.8
同样的错误弹出。有可能发生这种事吗?
我试图在ubuntu18.04上为所有用户安装poetry,但它似乎不起作用。
我尝试过这个脚本(它安装到本地用户的主目录)
$ curl -sSL https://install.python-poetry.org | python3 -
# this works but is only installed for the current user
我试过pip:
$ pip install poetry
$ poetry
Traceback (most recent call last):
File "/usr/lib/command-not-found", line
我是Python的新手,我正在尝试第一次安装项目依赖项,并运行提供的单元测试。 该项目使用了诗歌和pytest。我已经成功地按照instructions on the website在我的Windows机上完成了诗歌的全新安装,但是当尝试使用poetry install安装依赖项时,它给出了以下错误: EnvCommandError
Command C:\Users\jon.doe\AppData\Local\pypoetry\Cache\virtualenvs\my-project-d9FwOK5-py3.8\Scripts\python.exe - errored with t
使用正式安装程序,macOS 11.6/Xcode 13上的新诗安装失败:
u@s-MacBook-Pro ~ % curl -sSL https://install.python-poetry.org | python3 -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` comm
首先,我运行了poetry update,它似乎很有效。为了验证它是否真的更新了我的诗歌版本,我运行了poetry --version,这导致了以下错误:
Traceback (most recent call last):
File "C:\Users\XXX\.poetry\bin\poetry", line 17, in <module>
from poetry.console import main
ModuleNotFoundError: No module named 'poetry.console'
为了解决这个错误,卸载诗歌是最好的选
我正在尝试将Python库安装为另一个使用Poetry的Python应用程序的依赖项。
具体地说,我正在尝试安装Stem git存储库的一个特定分支'maint‘。
我运行此命令并得到随后的错误:
poetry add git+https://github.com/torproject/stem.git#maint
[RuntimeError]
Unable to retrieve the package version for /tmp/pypoetry-git-stem9gmhpzio
这看起来就像这个问题描述的那样,不能从项目的setup.py中解析“版本”,因为它不是一个简