Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found. #280

Open
n0obcoder opened this issue Jun 9, 2020 · 8 comments
Labels
question Further information is requested

Comments

@n0obcoder
Copy link

When I follow the below mentioned steps, I run into an error

git clone https://github.com/asyml/texar.git
cd texar
pip install .

ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

Can someone please help me fix this bug ?
Was the setup.py removed from the "texar" directory ?
Thanks in advance : )

@ZhitingHu ZhitingHu added the question Further information is requested label Jun 9, 2020
@ZhitingHu
Copy link
Member

The above cmds work for me. Can you double-check if setup.py is there?

@Luckyling1989-code
Copy link

if the setup.py is missing. how to set up a required seyup.py? TX

@ZhitingHu
Copy link
Member

I'm curious why setup.py would be missing if you cloned the repo directly?

You may try copy the setup.py file to your directory.

@Luckyling1989-code
Copy link

Luckyling1989-code commented Jun 29, 2020 via email

@ZhitingHu
Copy link
Member

Clone the repo with git clone https://github.com/asyml/texar.git and you'll get setup.py under texar/

@Luckyling1989-code
Copy link

Luckyling1989-code commented Jun 29, 2020 via email

@abbasabaei
Copy link

abbasabaei commented Jun 8, 2021

I had same problem and used this
https://stackoverflow.com/a/67883441/13181871

@vishal-bhanawase
Copy link

Facing similar issue
pip3.9 install mariadb
Collecting mariadb
Using cached mariadb-1.0.10.zip (85 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants