"Run pip install -e ." not working
I have just cloned a GitHub directory of project https://github.com/facebookresearch/Pearl.git
I create a new project with a new conda environment with Python 3.8.
The clone project includes a pyproject.toml
file configured to work with setuptools. This file should be sufficient for installing all dependencies with pip install -e .
When I open pyproject.toml
,the package dependencies are underlined in yellow to indicate warnings. When I hover the mouse on them, I see the warning about them not being installed. If I click on “More actions…”, I see a small menu with an option to install the specific dependency, and an option for “Run pip install -e
”
When I select the latter, I get the following error:
file:///C:/Program%20Files/JetBrains/PyCharm%20Community%20Edition%202023.2.1/jbr/bin does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
It does not seem to make sense to look for setup.py
or pyproject.toml
in a directory inside the PyCharm installation. It should use the pyproject.toml
in the project directory.
pip install -e .
does work property when I run it from the terminal.
I am running on Windows. Python version is 3.8. Pip version is 23.3. Setuptools version is 68.2.2.
The screenshot is below.
Please sign in to leave a comment.
Hi,
I just tried creating a Poetry project and I don't see that option when clicking on pyproject.toml file. Could it be a custom option or part of a custom plugin? Could you show a screenshot of this option, and a list of your custom plugins?
Sorry, my original instructions were not very precise. I have edited the original post to correct that.
BTW, you mentioned creating a Poetry project, I assume from scratch? This seems quite different from what I am doing, which is to clone a GitHub repository. The `pyproject.toml` file in that repository is configured to use `setuptools`, not Poetry.
Basically, I clone the repository and create a new project with a brand-new conda interpreter with Python 3.8. When I open
pyproject.toml
,the package dependencies are underlined in yellow to indicate warnings. When I hover the mouse on them, I see the warning about them not being installed. If I click on “More actions…”, I see a small menu with an option to install the specific depedency, and an option for “Runpip install -e
”Please see the screenshots below. Also please note I started from scratch today and still got the same error, so this seems to be reproducible.
Please follow it for updates, feel free to vote.
Thank you. However, I believe you have run into a separate issue. Note how the error message you got is quite different from mine. The error message you got seems related to a need for a newer version of
pip
(support forpyproject.toml
without a setup.py seems to be a pretty new feature).Could you please update
pip
to see if you get farther ahead and perhaps reproduce my problem?The warning to update pip is just a suggestion, as far as I understand.
Ah, yes, sorry, you're right. Another strange aspect in my error is the unexpected directory
jbr/bin
being used. In your case we see///
, but perhaps that is just a Windows/Mac difference.