Replies: 4 comments 1 reply
-
It seems like you're encountering some confusion with Rye's global Python configuration and its interaction with package management. Let's address your concerns:
In summary, when you set When you set If you want to install packages outside of a specific project managed by Rye, you can still use Changing the default Python version using In essence, Rye's global Python configuration is similar to tools like Pyenv, but tailored for Rye's specific use cases and providing additional features and integrations. |
Beta Was this translation helpful? Give feedback.
-
Thanks first. It looks like you are using AI to answer my question, which is not what I want. What I want to know is what the global python environment managed by rye does. In a non-project environment.Can global python only use python -m pip install to manage global python packages? This goes against rye's philosophy not using pip to manage packages. If not, how to install the package in a global non-environment? If the global python cannot install the package, is the global python managed by rye just used to switch the python version? |
Beta Was this translation helpful? Give feedback.
-
does this work for you? https://rye.astral.sh/guide/commands/install/ |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, and my solution is to leave the Namely, I create a new directory in From my point of view, this solution is just better than using |
Beta Was this translation helpful? Give feedback.
-
when I set
rye config --set-bool behavior.global-python=true
I found that the global python has been taken over by rye,In the project, you can use
rye add <package_name
> to install some dependencies, but you cannot do this outside the python projectBut I found that I can install some dependencies through
python -m pip install <package_name>
. But this feels weird. whats rye's philosophy is not usingpip
to manage python dependencies.And there is another problem. through
python -m pip show pip
I find the package was installed in/root/.rye/py/[email protected]/lib/python3.10/site-packages
which is standalone python's path . Thats means when I change the python version inrye config --set default.toolchain = "[email protected]"
. the package needed to be installed againSo. Do I have any misunderstanding about gloab-python? Is using
gloab-python
like using pyenv?I also find
default.toolchain
also affect the global tools's python version when usingrye install flask
or some other tools tooI really want to know when set
global-python=true
how to manage python package outside python project.Thanks
Beta Was this translation helpful? Give feedback.
All reactions