Giter Site home page Giter Site logo

Comments (4)

HelgeS avatar HelgeS commented on June 16, 2024

Installing via pip gets the Python 3 version of pymzn, which is unfortunately not working with python 2.

You can install the python 2-compatible branch by: pip install git+https://github.com/paolodragone/pymzn.git@python2
However, it is not up-to-date with the main development, e.g. the example from the readme is not working.

@paolodragone is there a specific reason to have two codebases for python 2 and 3? So far I identified only the subprocess module to be relying on the Python 3-specific version. Are there further dependencies?

from pymzn.

indrajitsg avatar indrajitsg commented on June 16, 2024

I tried. This is the error I am getting:

Collecting git+https://github.com/paolodragone/pymzn.git@python2
  Cloning https://github.com/paolodragone/pymzn.git (to python2) to c:\users\indraj~2.sen\appdata\local\temp\pip-4gayvz-build
  Error [Error 2] The system cannot find the file specified while executing command git clone -q https://github.com/paolodragone/pymzn.git c:\users\indraj~2.sen\appdata\local\temp\pip-4gayvz-build
Cannot find command 'git'

I do have Git Bash installed.

Regards,
Indrajit

from pymzn.

HelgeS avatar HelgeS commented on June 16, 2024

You need to have the git command on your %PATH% variable, so it can be found by pip (see here).

I also found another alternative: pip install https://github.com/paolodragone/pymzn/archive/python2.zip, this installs the same version as the command above, but does not require git to be available.

from pymzn.

paolodragone avatar paolodragone commented on June 16, 2024

Hi, sorry about the lack of support for both Windows and Python 2. I personally use Python 3 on Linux so I often overlook other platforms. I'll try to put some effort on those now that there are more people using pymzn on them.
@HelgeS As said, I mainly develop in python 3.5, so I often make use of syntactic constructs of the newer versions of python, that is why I keep python 2 and 3 versions on separate branches.

from pymzn.

Related Issues (20)

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.