Open kyuwoo-choi opened 2 months ago
I think your issue is that the pip-tools you're using is not installed in the same environment you're trying to modify, but it needs to be to work properly. Notice that in your pip list
output pip-tools is absent. So the environment changed by the sync is a different one.
As you mentioned, it was an issue with the wrong environment.
I installed pip-tools globally with pipx, but running pip-sync didn't work in my active conda environment.
After running pip-sync with the --python-executable
set to the conda environment's Python, it worked fine.
I did a quick search on the issues and thought pip-sync would work with the active Python environment, but it didn't. Is this the expected behavior? I would like pip-sync to work with the active conda environment.
Thanks.
I changed title to reflect the issue right.
Environment Versions
Steps to replicate
pip install xgboost
pip list | grep xgboost
see xgboost 2.1.1 listedpip-sync blank-requirements.txt
tells "Everything up-to-date"Expected result
removes the xgboost and nvidia-nccl-cu12 which is dep for xgboost. ...
Actual result
manually installed pip package and it's dependency leave ...