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

15,784

Solution 1

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.

Solution 2

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

Share:
15,784
Josh
Author by

Josh

Updated on July 25, 2022

Comments

  • Josh
    Josh almost 2 years

    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.

  • Josh
    Josh over 10 years
    configure doesn't have an extension. In properties, it says Type of File: File. I tried renaming it to a *.exe but got the message Program too big to fit into memory. I also tried just running configure as is, but it said configure was not recognized.
  • Stephan
    Stephan over 10 years
    if it has no extension dont type an extension, dont try to convert it either
  • Stephan
    Stephan over 10 years
    @josh forgot to tag you in prev comment
  • Amit
    Amit over 10 years
    @josh the poker-source project that you linked seems to be only usable on Unix/Linux systems. The installation instructions in there have no mention of windows at all. You could probably try and compile that program in a linux VM on your windows machine or use cygwin that may help in compiling and running the software. From there home page at gna.org/cookbook/?group=pokersource or pokersource.sourceforge.net I downloaded the poker-engine file and the tarball had a poker-engine directory which contains all the python code written that you could use.