Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

pip install ethereum failed #880

Open
wenbo228228 opened this issue May 20, 2018 · 5 comments
Open

pip install ethereum failed #880

wenbo228228 opened this issue May 20, 2018 · 5 comments

Comments

@wenbo228228
Copy link

Hello,I'm new to ethereum,and I want to install the ethereum package for python.
When I run pip install ethereum in my shell,I got the following error:
`Requirement already satisfied: ethereum in c:\users\wenbo\anaconda3\lib\site-packages\ethereum-2.3.1-py3.6.egg
Requirement already satisfied: pysha3>=1.0.1 in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: PyYAML in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: repoze.lru in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: scrypt in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: pbkdf2 in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: py_ecc in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: rlp>=0.4.7 in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Collecting pyethash (from ethereum)
Using cached https://files.pythonhosted.org/packages/6c/40/5bb02ad7e2fae9b04cd0c391dda81213bc786c30c8381b018600cfc7ce62/pyethash-0.1.27.tar.gz
Requirement already satisfied: pycryptodome>=3.4.7 in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: coincurve>=7.0.0 in c:\users\wenbo\anaconda3\lib\site-packages (from ethereum)
Requirement already satisfied: future in c:\users\wenbo\appdata\roaming\python\python36\site-packages (from ethereum)
Requirement already satisfied: eth-utils<2,>=1.0.2 in c:\users\wenbo\anaconda3\lib\site-packages (from rlp>=0.4.7->ethereum)
Requirement already satisfied: asn1crypto in c:\users\wenbo\anaconda3\lib\site-packages (from coincurve>=7.0.0->ethereum)
Requirement already satisfied: cffi>=1.3.0 in c:\users\wenbo\anaconda3\lib\site-packages (from coincurve>=7.0.0->ethereum)
Requirement already satisfied: eth-hash<1.0.0,>=0.1.0 in c:\users\wenbo\anaconda3\lib\site-packages (from eth-utils<2,>=1.0.2->rlp>=0.4.7->ethereum)
Requirement already satisfied: cytoolz<1.0.0,>=0.8.2 in c:\users\wenbo\anaconda3\lib\site-packages (from eth-utils<2,>=1.0.2->rlp>=0.4.7->ethereum)
Requirement already satisfied: pycparser in c:\users\wenbo\anaconda3\lib\site-packages (from cffi>=1.3.0->coincurve>=7.0.0->ethereum)
Requirement already satisfied: toolz>=0.8.0 in c:\users\wenbo\anaconda3\lib\site-packages (from cytoolz<1.0.0,>=0.8.2->eth-utils<2,>=1.0.2->rlp>=0.4.7->ethereum)
Building wheels for collected packages: pyethash
Running setup.py bdist_wheel for pyethash ... error
Failed building wheel for pyethash
Running setup.py clean for pyethash
Failed to build pyethash
Installing collected packages: pyethash
Running setup.py install for pyethash ... error
Exception:
Traceback (most recent call last):
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\compat_init_.py", line 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 4: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_install.py", line 878, in install
spinner=spinner,
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils_init_.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\compat_init_.py", line 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 4: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\commands\install.py", line 385, in run
requirement_set.cleanup_files()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_set.py", line 729, in cleanup_files
req.remove_temporary_source()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_install.py", line 977, in remove_temporary_source
rmtree(self.source_dir)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\six.py", line 686, in reraise
raise value
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils_init_.py", line 102, in rmtree
onerror=rmtree_errorhandler)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 389, in rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils_init
.py", line 114, in rmtree_errorhandler
func(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Users\wenbo\AppData\Local\Temp\pip-build-4a52w0mh\pyethash\src\python\core.c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\commands\install.py", line 385, in run
requirement_set.cleanup_files()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils\build.py", line 38, in exit
self.cleanup()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils\build.py", line 42, in cleanup
rmtree(self.name)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\six.py", line 686, in reraise
raise value
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils_init_.py", line 102, in rmtree
onerror=rmtree_errorhandler)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\wenbo\Anaconda3\lib\shutil.py", line 389, in rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "c:\users\wenbo\anaconda3\lib\site-packages\pip-9.0.1-py3.6.egg\pip\utils_init
.py", line 114, in rmtree_errorhandler
func(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Users\wenbo\AppData\Local\Temp\pip-build-4a52w0mh\pyethash\src\python\core.c'
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.`

Can anyone tell me how to fix this?Thanks!

@dahifi
Copy link

dahifi commented Jun 22, 2018

Did you try upgrading pip like it said?

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

@wenbo228228
Copy link
Author

This is odd,when I try to upgrade pip,it sais I've already upgraded pip

C:\Users\wenbo>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\wenbo\anaconda3\lib\site-packages

@dahifi
Copy link

dahifi commented Jun 22, 2018

We're both getting 'Failed building wheel', so it looks like a dependency issue.

python3 -m pip install --upgrade pip
Requirement already up-to-date: pip in /home/el/.virtualenv/exchange/lib/python3.6/site-packages (10.0.1)
ethereum 2.3.1 requires pyethash<1.0.0,>=0.1.27, which is not installed.
ethereum 2.3.1 requires pysha3>=1.0.1, which is not installed.
ethereum 2.3.1 requires repoze.lru, which is not installed.
ethereum 2.3.1 requires rlp<2.0.0,>=1.0.0, which is not installed.
ethereum 2.3.1 requires scrypt, which is not installed.

@wenbo228228
Copy link
Author

@dahifi That's right.Did you find a solution?

@dahifi
Copy link

dahifi commented Jun 22, 2018

I did, but I don't see the same error in your output that I had. The clue in mine was a 'fatal error: Python.h: No such file or directory'

I installed the python3-dev package and it ran correctly.

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

No branches or pull requests

2 participants