在设置全新的pyenv-virtualenv并更改我的目录以使用'pyenv version'之后,我尝试了整齐地安装,我收到以下错误:
// Changes here to return "i"
public int bestDecade() {
int best = 0;
for(int i = 0; i < DECADES; i++)
if(rank[i] > rank[best])
best = i;
return best; // Returns values between [0 .. DECADES)
}
// No changes here, use returned value, [0 .. DECADES) in
int best = namesArray[i].bestDecade(); // You have "i" here, the index of rank
displayArea.append("\n" + namesArray[i].getName() + namesArray[i].getRank(best)); // Use "i" here, rank[i]
我进入这个virtualenv业务的全部原因是因为我在el capitan上使用matplotlib与系统python时遇到了不安全的字符串pickle错误,这已知是一个问题(https://github.com/matplotlib/matplotlib/issues/5314),所以我试图构建我自己的新框架并运行它,这不起作用,现在尝试建立一个virtualenv但看起来virtualenv可能只是不能很好地使用某些python包? :'( 使用系统python在我的机器上正确安装virtualenv的外观。可悲的是,系统python,如上所述,与matplotlib的搭配并不好。
P.S。这些是我在这个特定的pyenv-virtualenv中安装的软件包:
dhcp-uris-1290:seam Chelsea$ pip install shapely
Collecting shapely
Using cached Shapely-1.5.15.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/1l/r_vh6y997rdgk6sdnkqsntpr0000gn/T/pip-build-odrxBR/shapely/setup.py", line 38, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "/private/var/folders/1l/r_vh6y997rdgk6sdnkqsntpr0000gn/T/pip-build-odrxBR/shapely/shapely/_buildcfg.py", line 88, in <module>
clibs = get_geos_config('--clibs')
File "/private/var/folders/1l/r_vh6y997rdgk6sdnkqsntpr0000gn/T/pip-build-odrxBR/shapely/shapely/_buildcfg.py", line 71, in get_geos_config
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
File "/Users/Chelsea/.pyenv/versions/2.7.11/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/Users/Chelsea/.pyenv/versions/2.7.11/lib/python2.7/subprocess.py", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/Users/Chelsea/.pyenv/versions/2.7.11/lib/python2.7/pickle.py", line 1388, in loads
return Unpickler(file).load()
File "/Users/Chelsea/.pyenv/versions/2.7.11/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/Users/Chelsea/.pyenv/versions/2.7.11/lib/python2.7/pickle.py", line 972, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle
-----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1l/r_vh6y997rdgk6sdnkqsntpr0000gn/T/pip-build-odrxBR/shapely/