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.
Uh oh!
There was an error while loading. Please reload this page.
-
when I set
rye config --set-bool behavior.global-python=trueI 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 usingpipto manage python dependencies.And there is another problem. through
python -m pip show pipI find the package was installed in/root/.rye/py/cpython@3.10.13/lib/python3.10/site-packageswhich is standalone python's path . Thats means when I change the python version inrye config --set default.toolchain = "cpython@3.12.2". the package needed to be installed againSo. Do I have any misunderstanding about gloab-python? Is using
gloab-pythonlike using pyenv?I also find
default.toolchainalso affect the global tools's python version when usingrye install flaskor some other tools tooI really want to know when set
global-python=truehow to manage python package outside python project.Thanks
Beta Was this translation helpful? Give feedback.
All reactions