Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dot-slash not recognized in command prompt - Trying to install Python module

I am trying to install a Python module in command prompt. The directions state to run "./configure" to install the module and then run a make command. However, whenever I do that, I receive the error

'.' is not recognized as an internal or external command, operable program or batch file.

I am still relatively new to using Command Prompt and Python, so this could be a very novice issue. From what I've read from other questions, it seems that command prompt should automatically recognize the ./ command, so my only guess is something in my%PATH% variable could be tricking it. Any thoughts or suggestions will be greatly appreciated. Thanks in advance.

EDIT: Using Windows 7 I have tried using pip as well but it said 'Could not find any downloads that satisfy the requirement configure` The module is poker-engine I got the most recent version.

like image 818
Josh Avatar asked Aug 05 '13 14:08

Josh


People also ask

How do I fix Python not recognized in CMD?

Specify the full location to python.exe One way to fix the error would be to launch Python from the Command Prompt by passing in the full path to the executable file each time you wanted to run Python. In other words, instead of typing Python you would type something like C:\Users\me\path\to\python.exe .

How do I get Python to recognize a Command Prompt?

Open Command Prompt and type “python” and hit enter. You will see a python version and now you can run your program there.

How do I enable Python in CMD?

To start a Python interactive session, just open a command-line or terminal and then type in python , or python3 depending on your Python installation, and then hit Enter .


2 Answers

Very well answered here - How to fix '.' is not an internal or external command error

Trick is to use the command in double quotes after ./  

I resolved some of my issues as below,

Example -

Change

./node_modules/.bin/coffee -o js -c lib/

To

./"node_modules/.bin/coffee" -o js -c lib/

 

Another example

Change

./node_modules/.bin/browserify demo/browser.js > demo/bundle.js

To

./"node_modules/.bin/browserify" demo/browser.js > demo/bundle.js

Hope it helps.

like image 187
Anmol Saraf Avatar answered Sep 19 '22 12:09

Anmol Saraf


Your slash should be the other way. ".\configure". I'm having the same problem and this worked for me.

like image 21
Jordan Salinas Avatar answered Sep 18 '22 12:09

Jordan Salinas