Comments (14)
I think using pip will be the easiest method. Make sure that you're using the pip that belongs to the environment you're executing in.
If pip throws any errors, please post them here.
Also, this code should probably be considered unmaintained, I haven't worked on or with this for several years.
from gco_python.
I'm getting the same issue as above after installing it using pip.
It gives: No module named 'pygco'
I import it like so:
import pygco
from gco_python.
are you sure that the executing environment is the same as the environment that pip installed into?
Are you executing a script? If so, try which python
and which pip
. You can also do python -m pip install pygco
from gco_python.
Yes they are. I am trying to execute example.py. When I try which python
and which pip
I get:
/Users/Shared/miniconda3/envs/myenv/bin/python
and
/Users/Shared/miniconda3/envs/myenv/bin/pip
from gco_python.
hm that looks ok. what's the output of pip install pygco
?
from gco_python.
Requirement already satisfied: pygco in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (0.0.1)
Requirement already satisfied: numpy in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (from pygco) (1.16.6)
Requirement already satisfied: cython in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages (from pygco) (0.29.21)
from gco_python.
and pygco exists in /Users/Shared/miniconda3/envs/myenv/lib/python3.7/site-packages
?
from gco_python.
Yes it does
from gco_python.
There should be a folder that's just called pygco
in addition to the dist-info folder. Remove the dist-info folder and do the pip install again. It looks like you did some partial install or uninstall at some point.
from gco_python.
I did that, now I'm trying to reinstall it using pip and I'm getting the error
gco_python.cpp:626:10: fatal error: 'ios' file not found #include "ios"
from gco_python.
make sure you have the standard libraries for C++ installed. As a warning the GCO code has been unmaintained for many years so you're mostly on your own there.
from gco_python.
I got it working. Thanks!
from gco_python.
please share how you managed to install this library
from gco_python.
I just got a simple fix and I'm going to let it here for the next people with the same problem.
First explaining, I was with exactly the same problem than in this issue, that is, I installed pygco with:
$ pip install pygco
But when running a script the result was:
No module named 'pygco'
Then running pip install pygco
again I got into the site-packages
folder and could find the pygco-0.0.1.dist-info
sub-folder.
Then to solve I simply ran:
$ pip install -U pygco
Which upgraded pygco version from 0.0.1
to 0.0.16
and the problem was solved.
Hope that it helps someone! 😊
from gco_python.
Related Issues (11)
- Segfault in cut_from_graph with specific inputs HOT 1
- Error on windows HOT 6
- update setup HOT 5
- Source code dead link HOT 17
- non-symmetric smooth_cost HOT 6
- can i ues that for instance segmentation? HOT 1
- Cannot install with pip3 HOT 1
- Convert Python to C++ HOT 1
- Compiling GCO HOT 6
- 3-class segmentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gco_python.