Git Product home page Git Product logo

Comments (2)

numantyke avatar numantyke commented on August 29, 2024

just change everywhere in the test files is "Python3" to "Python" and you are good to go.

from tiny_python_projects.

nbehrnd avatar nbehrnd commented on August 29, 2024

@numantyke In case the computer you are using runs Linux, it is first up to the authors of the distribution how the programs and packages are named in the package managers, and eventually called from the CLI. In the case of pytest for example, for some time, there was pytest for (now legacy) Python 2 which you called by pytest my_program.py. All while at the same time, there equally was pytest for (now contemporary) Python 3 which you called by pytest-3 my_program.py. If you happen to work with a Linux distribution which never used Python 2 (e.g., Xubuntu 20.04 LTS fossa, or more recent), chances are that a call like pytest my_program.py now (implicitly) refers to the pytest for Python 3 only. (And similar python once about python 2, now more likely python 3.)

More generally speaking, however, you may set an alias in your shell's configuration file. In case you use bash, this would be .bashrc in your home directory. If applied with care, you may (re)define how programs/combination of instructions are easier accessible to you. E.g., an entry of

alias mv="mv -i"  # safety guard to prevent unintentional overwriting

in this register and restart of your bash (source ~/.bashrc) will prevent a file being moved accidentally overwrite an other file of same file name. The concept is briefly described e.g., by softwarecarpentry.

from tiny_python_projects.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.