Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pip install . "not working on Linux #24

Open
tomsnick opened this issue Apr 15, 2019 · 2 comments
Open

"pip install . "not working on Linux #24

tomsnick opened this issue Apr 15, 2019 · 2 comments

Comments

@tomsnick
Copy link

I think I successfully loaded ccgains on my Linux machine but cannot get pip to work:
tomf@tomVaio:/ccgains/ccgains$ pip install .
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
from pip import main
ImportError: cannot import name main
I get the same error with
tomf@tomVaio:/ccgains/ccgains$ pip install --user .
as well as in one directory up:
tomf@tomVaio:/ccgains$ pip install --user .
To help figure out the problem here are the directory contents:
tomf@tomVaio:/ccgains$ dir
ccgains COPYING data examples README.md setup.py
contributors.txt COPYING.LESSER docs MANIFEST.in run_tests.sh tests
tomf@tomVaio:/ccgains/ccgains$ dir
bags.py historic_data.py relations.py templates
binance_util.py init.py reports.py trades.py
I removed the ccgains directories and "git cloned" again but got the same error message with pip. There are no obvious errors that I can see during "git clone" but here is confirmation, in case that helps determine the problem:
tomf@tomVaio:$ git clone https://github.com/probstj/ccgains.git
Cloning into 'ccgains'...
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 564 (delta 57), reused 94 (delta 57), pack-reused 470
Receiving objects: 100% (564/564), 1.16 MiB | 0 bytes/s, done.
Resolving deltas: 100% (362/362), done.
Checking connectivity... done.

@anson-vandoren
Copy link
Contributor

This is actually a problem with python/pip on certain linux distributions. There's more details on this issue thread that might help you get it working. There's a few different things to try depending on your distro, specific python version, whether pip has been modified since installing by your package manager, etc.

@tomsnick
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants