老师您好,安装这一步pipenv 就报错 Mac系统

来源:3-1 python 实现区块链环境准备

十二月出生

2018-10-09

1.pip install pipenv 或者 python3 -m pip install pipenv
The directory ‘/Users/xiang/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/xiang/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: pipenv in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (2018.10.9)
Requirement already satisfied: pip>=9.0.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pipenv) (18.1)
Requirement already satisfied: virtualenv-clone>=0.2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pipenv) (0.3.0)
Requirement already satisfied: virtualenv in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pipenv) (16.0.0)
Requirement already satisfied: setuptools>=36.2.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pipenv) (40.4.3)
Requirement already satisfied: certifi in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pipenv) (2018.8.24)
2.pipenv --python=python3.6
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/xiang/Library/Caches/pip/wheels/71/96/c1/9ee16f298b189c5785d2bde84c4a2bd459d11051d0da6b4a5f’
Consider using the --user option or check the permissions.----------------------------------------
…Installing setuptools, pip, wheel…done.
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/virtualenv.py”, line 2343, in
main()
File “/Library/Python/2.7/site-packages/virtualenv.py”, line 712, in main
symlink=options.symlink)
File “/Library/Python/2.7/site-packages/virtualenv.py”, line 947, in create_environment
download=download,
File “/Library/Python/2.7/site-packages/virtualenv.py”, line 904, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File “/Library/Python/2.7/site-packages/virtualenv.py”, line 796, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /Users/xiang/.local/…vyjey0/bin/python3.6 - setuptools pip wheel failed with error code 1
TypeError: coercing to Unicode: need string or buffer, type found

写回答

2回答

汪小宝

2018-11-08

你到开发工具里面进终端,在里面输入安装命令,应该就不会有事了。

0
1
十二月出生
非常感谢!
2018-11-20
共1条回复

Tiny

2018-10-10

看上去是权限问题哦~,   你尝试google 查一查,(用百度查估计不行), 我也没有遇到过这个问题哦~ 

0
1
十二月出生
谢谢老师 确实是权限问题 已经解决了
2018-11-20
共1条回复

区块链入门与去中心化应用实战,快速入门区块链技术

一门课搞懂区块链核心原理,快速入门去中心化Dapp开发

1259 学习 · 208 问题

查看课程