Appveyor doesn't recognizes "python3" command.

satwikkansal's Avatar

satwikkansal

10 Jun, 2017 01:24 PM

When I try to use python3, it throws the error

```
python3: command not found
```

However, using python instead of python works but I still want to know what I should do to make the python3 command work as well. Using python3 instead of python is a common usage IMO and it works on my windows (not sure about other systems)

Here's the build link
https://ci.appveyor.com/project/satwikkansal/coala-quickstart/build/1.0.5/job/0cxxb49b11m75eg6

  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Jun, 2017 02:20 PM

    Ilya Finkelshteyn's Avatar

    Sorry my ignorance, could you please send us any documentation about this specific command? In what environment do you successfully use it? Is it actually .exe or maybe some .cmd/.bat file?
    We have a lot of Python versions installed, but command is always python.exe, and version called depends on what folder you run it from.

  2. 2 Posted by satwikkansal on 15 Jun, 2017 06:23 PM

    satwikkansal's Avatar

    Sorry, I researched about it and came to know that python3 doesn't work in windows because there's no .exe or .cmd or .bat file corresponding to python3 as you mentioned. The command works only after changing the .exe name or probably when using some virtual environment (which was the reason it was working in my windows system)

    But using python3 in scripts for Unix system is a common practice, and it fails on appveyor. Can you suggest some short workaround to make python3 commands work for appveyor as well.

  3. Support Staff 3 Posted by Feodor Fitsner on 15 Jun, 2017 07:04 PM

    Feodor Fitsner's Avatar

    I guess you can just copy/rename python.exe during the build.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac