First Steps with Supplychainpy

198 views
Skip to first unread message

moy ses

unread,
Feb 16, 2018, 6:55:45 PM2/16/18
to supplychainpy
Hi everybody!

I will use this pos  to document my experience installing supplychainpy.

My first attempt to install it was on Windows 10. It first complained about no cython installed. Then complained about some visual studio C++ tools. I decided to abort the Windows installation. 

Installation on Linux Fedora 27 Workstation

I proceed with:

pip install supplychainpy

But I received the following errors:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-v_EKhY/supplychainpy/setup.py", line 2, in <module>
        from Cython.Build import cythonize
    ImportError: No module named Cython.Build
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v_EKhY/supplychainpy/


supplychainpy/simulations/sim_summary.c:11:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

There are several python versions installed so I used the following command as root as I was unable to install with the normal user:

pip-3.6 install cython
pip-3.6 install numpy
dnf install redhat-rpm-config python3-devel gcc

Then I proceed with :

pip-3.6 install supplychainpy

And supplychainpy was succesfully installed. 

Regards!



moy ses

unread,
Feb 16, 2018, 7:37:04 PM2/16/18
to supplychainpy
Another library was needed for the reports.

dnf install python3-tkinter

Kevin Fasusi

unread,
Feb 16, 2018, 8:15:18 PM2/16/18
to supplychainpy
Hi, 

Great to see you are progressing with the install and you have had success. I just wanted to check that you have also installed "textblob" which is another dependency that gets overlooked. After installing "textblob" you should run:

python -m textblob.download_corpora

Also, it might be safer to use a virtual environment such as virtualenv, conda, pipenv or pyenv to manage the installation of dependencies and use the library. I wouldn't want you to damage the python environment on which your OS relies. If you are using a VM or you are already aware of this then please ignore me, I just don't want you to damage your workstation environment, if you rely on it for other tasks.

best regards,
Kevin


 

manish kumar

unread,
Aug 8, 2020, 10:31:03 PM8/8/20
to supplychainpy
Hi Kevin,

I am facing issues when installing supplychainpy on jupyter notebooks (windows 10 64 bit). I have attached the commands I used. The notebook simply freezes.
Please help me out in this.

Regards
Manish Kumar

Capture.PNG
Reply all
Reply to author
Forward
0 new messages