SOLVED
Python Tool not installing a Package
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
gkalkat
5 - Atom
‎06-27-2023
08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, I am running into an error when trying to install a package using the python tool. The package I am trying to install is glpk. The error seems to only happen when trying to install the package on Alteryx and not on a regular ide that uses python.Below I have pasted the exact error I am geting. Would anybody have any ideas as to how to resolve these issues?
fatal error C1083: Cannot open include file: 'glpk.h': No such file or directory
ERROR: Failed building wheel for glpk Failed to build glpk ERROR: Could not build wheels for glpk which use PEP 517 and cannot be installed directly
Solved! Go to Solution.
Labels:
- Labels:
- Python
4 REPLIES 4
apathetichell
19 - Altair
‎06-27-2023
09:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Are you installing via Package.installPackages('glpk') ?
Are you running in admin?
‎06-27-2023
10:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes. I am using that exact code and running as an admin.
16 - Nebula
‎06-29-2023
07:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What about,
!pip install scikit-glpk
import glpk
‎07-03-2023
10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This installed the sckit version of it and it did install so this works as a solution.
