python - How to use mechanize in pypy? -


i used mechanize in python, peppy said

$ pypy python 2.7.9 (9c4588d731b7fe0b08669bd732c2b676cb0a8233, mar 31 2015, 07:55:22) [pypy 2.5.1 gcc 4.2.1 compatible apple llvm 6.0 (clang-600.0.57)] on darwin type "help", "copyright", "credits" or "license" more information. >>>> import mechanize traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named mechanize >>>> import sys >>>> sys.path ['', '/usr/local/cellar/pypy/2.5.1/libexec/site-packages/setuptools-14.3.1-py2.7.egg', '/usr/local/cellar/pypy/2.5.1/libexec/site-packages/pip-6.0.8-py2.7.egg', '/usr/local/cellar/pypy/2.5.1/libexec/lib_pypy/__extensions__', '/usr/local/cellar/pypy/2.5.1/libexec/lib_pypy', '/usr/local/cellar/pypy/2.5.1/libexec/lib-python/2.7', '/usr/local/cellar/pypy/2.5.1/libexec/lib-python/2.7/lib-tk', '/usr/local/cellar/pypy/2.5.1/libexec/lib-python/2.7/plat-darwin', '/usr/local/cellar/pypy/2.5.1/libexec/lib-python/2.7/plat-mac', '/usr/local/cellar/pypy/2.5.1/libexec/lib-python/2.7/plat-mac/lib-scriptpackages', '/usr/local/cellar/pypy/2.5.1/libexec/site-packages'] 

please tell me how use mechanize in pypy. think haven't create path don't know way.

pypy not automatically pick cpython paths. either need install mechanize separately (i suggest virtualenv) or need put path sys.path or pythonpath environment variable.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -