Problems installing Cython

110 views
Skip to first unread message

Arturo Martínez Sandoval

unread,
Feb 7, 2019, 10:18:07 AM2/7/19
to Kivy users support
Hi,
I'm trying to package my App into a MacOs app. 
I'm following the instructions on https://kivy.org/doc/stable/guide/packaging-osx.html, and when I try to install Cython, this error shows up:

MacBook-Air-de-Arturo:~ Administrador$ pip install Cython==0.26.1

/Library/Frameworks/Python.framework/Versions/3.6/bin/pip:6: UserWarning: Unbuilt egg for Unknown [unknown version] (/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages)

  from pkg_resources import load_entry_point

Requirement already satisfied: Cython==0.26.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (0.26.1)

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/~ython-0.28.2.dist-info/METADATA'


The same happens when I try to install PyInstaller.

I'm using a MacBook Air Mid-2013 with Mojave (10.14.3). 
I avoided using the Python built-in in the OS, so I installed Kivy in Python3 and developed in it my App.

Captura de pantalla 2019-02-07 a la(s) 9.03.04.png

ZenCODE

unread,
Feb 7, 2019, 12:42:04 PM2/7/19
to Kivy users support
Looks like there is a problem with your python installation. Note the "~ython" in your last line. I would suggest using a virtual environment and trying to install Kivy into that? Otherwise, try "sudo pip install Cython==0.26.1"

Arturo Martínez Sandoval

unread,
Feb 7, 2019, 1:08:15 PM2/7/19
to Kivy users support
Hi, I tried installing it with sudo and this showed up:

MacBook-Air-de-Arturo:~ Administrador$ sudo pip install Cython==0.26.1

Password:

/Library/Frameworks/Python.framework/Versions/3.6/bin/pip:6: UserWarning: Unbuilt egg for Unknown [unknown version] (/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages)

  from pkg_resources import load_entry_point

The directory '/Users/arturomartinez/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/arturomartinez/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Requirement already satisfied: Cython==0.26.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (0.26.1)

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/~ython-0.28.2.dist-info/METADATA'


You are using pip version 10.0.1, however version 19.0.1 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

MacBook-Air-de-Arturo:~ Administrador$ 



Maybe the virtual environment works. The program is that I don't know how to create one. Can you help me? Do you know any tutorial or something like that?

ZenCODE

unread,
Feb 7, 2019, 1:38:05 PM2/7/19
to Kivy users support
Message has been deleted

Arturo Martínez Sandoval

unread,
Feb 15, 2019, 5:29:58 PM2/15/19
to Kivy users support
Thank you! It totally helped me.

ZenCODE

unread,
Feb 16, 2019, 4:52:29 AM2/16/19
to Kivy users support
Awesome!
Reply all
Reply to author
Forward
0 new messages