texar icon indicating copy to clipboard operation
texar copied to clipboard

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

Open n0obcoder opened this issue 4 years ago • 8 comments

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 : )

n0obcoder avatar Jun 09 '20 07:06 n0obcoder

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

ZhitingHu avatar Jun 09 '20 19:06 ZhitingHu

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

Luckyling1989-code avatar Jun 28 '20 07:06 Luckyling1989-code

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.

ZhitingHu avatar Jun 28 '20 23:06 ZhitingHu

Thanks for your answer. I have double checked the uploaded files in your page. And do not find the setup.py. Now, I use “anaconda +pycharm” to run the python on my MacBook. Could you send me one packaged set of file by email? I plan to do the AcyclicLp analysis of one complex network.

Many thank!

Ling

| | 张灵 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

On 06/29/2020 07:04, Zhiting Hu wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Luckyling1989-code avatar Jun 29 '20 00:06 Luckyling1989-code

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

ZhitingHu avatar Jun 29 '20 03:06 ZhitingHu

Many thanks for your kind help!

Ling

| | 张灵 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

On 06/29/2020 11:21, Zhiting Hu wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Luckyling1989-code avatar Jun 29 '20 03:06 Luckyling1989-code

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

abbasabaei avatar Jun 08 '21 07:06 abbasabaei

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.

vishal-bhanawase avatar Feb 23 '22 13:02 vishal-bhanawase