GithubHelp home page GithubHelp logo

Comments (7)

maciejkula avatar maciejkula commented on August 19, 2024

You need working C compiler to install LightFM.

The easiest way to get this (on Windows) is to use Miniconda as your Python environment. Alternatively, you could install the Microsoft Visual C++ compiler.

from lightfm.

PhanDuc avatar PhanDuc commented on August 19, 2024

With Miniconda i had error :

Error: Package missing in current win-64 channels:
  - lightfm-1.9.tar.gz

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

Use pip to install it.

So:

  1. Install miniconda.
  2. Run pip install lightfm.

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

You can use the https://github.com/lyst/lightfm/blob/master/appveyor.yml file for reference.

from lightfm.

PhanDuc avatar PhanDuc commented on August 19, 2024

Hi maciejkula, sorry for the late response
Now this is my error when i installed with Miniconda :

C:\Users\palev>pip install -e F:\Miniconda3\envs\lightfm\Lib\lightfm-master\
Obtaining file:///F:/Miniconda3/envs/lightfm/Lib/lightfm-master
Requirement already satisfied (use --upgrade to upgrade): numpy in f:\miniconda3\envs\lightfm\lib\site-packages (from lightfm==1.9)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.17.0 in f:\miniconda3\envs\lightfm\lib\site-packages (from lightfm==1.9)
Requirement already satisfied (use --upgrade to upgrade): requests in f:\miniconda3\envs\lightfm\lib\site-packages (from lightfm==1.9)
Installing collected packages: lightfm
  Running setup.py develop for lightfm
    Complete output from command F:\Miniconda3\envs\lightfm\python.exe -c "import setuptools, tokenize;__file__='F:\\Miniconda3\\envs\\lightfm\\Lib\\lightfm-master\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
    Compiling without OpenMP support.
    running develop
    running egg_info
    writing lightfm.egg-info\PKG-INFO
    writing dependency_links to lightfm.egg-info\dependency_links.txt
    writing top-level names to lightfm.egg-info\top_level.txt
    writing requirements to lightfm.egg-info\requires.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'lightfm.egg-info\SOURCES.txt'
    writing manifest file 'lightfm.egg-info\SOURCES.txt'
    running build_ext
    building 'lightfm._lightfm_fast_no_openmp' extension
    error: Unable to find vcvarsall.bat

    ----------------------------------------
Command "F:\Miniconda3\envs\lightfm\python.exe -c "import setuptools, tokenize;__file__='F:\\Miniconda3\\envs\\lightfm\\Lib\\lightfm-master\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in F:\Miniconda3\envs\lightfm\Lib\lightfm-master\

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

It looks like you still need the Microsoft C compiler. There are some pointers here: https://wiki.python.org/moin/WindowsCompilers

In general I strongly recommend developing on Linux.

from lightfm.

faresgh4 avatar faresgh4 commented on August 19, 2024

Hey, i have the same problem on windows 8.1, i tries with anaconda but nothing works, can i please get some help !!!!

from lightfm.

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.