0

I'm trying to make my own python pack using setuptools, setup.py file and installing it directly from github repository. The package is sucessfully installed but when I call the command an error arises:

line 1: from: command not found. 

somehow the binary file were not interpreted properly.

I'm using anaconda but have tried to install in other /bin diretories.

Tiago Cabral
  • 16
  • 1
  • 2
  • are you sure that you are typing this command in python, (not in bash or terminal). – Muhammad Khuzaima Umair Nov 10 '22 at 19:45
  • l is to create command line tool too. This is the [github](https://github.com/computational-chemical-biology/ChemWalker) project link. The install instructions are on it. Sorry. I suppose that my question were not clear enough – Tiago Cabral Nov 10 '22 at 19:59
  • https://stackoverflow.com/search?q=%5Bpython%5D+%22line+1%3A+from%3A+command+not+found%22 – phd Nov 10 '22 at 20:23
  • Add a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) on the first line of the script: `#!/usr/bin/env python` – phd Nov 10 '22 at 20:24

1 Answers1

0

you need to start the python interpreter first in the command window, so just type python and then try your command.

CumminUp07
  • 1,936
  • 1
  • 8
  • 21
  • It works. But the problem is that my advisor did installed It and It worked regardless the interpreter start. Gonna share the [github](https://github.com/computational-chemical-biology/ChemWalker) link just in case someone wants to test. – Tiago Cabral Nov 10 '22 at 19:57