Cara memasang python 27 dan facebook py

This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.

  • Project description
  • Project details
  • Release history
  • Download files

Project description

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Close

Hashes for facebook-py-0.2.tar.gz

Hashes for facebook-py-0.2.tar.gz
AlgorithmHash digest
SHA2563652bdaa3641316c8d207452a0fb02531c71290dab33970546d9a935147b8d60
MD5d6d40355f1882221e83bb99b3184a20b
BLAKE2-2569e61e52405f3a948b1b30bcbb2b39dbf440dbf789a7a31a9766f422485bd3570

Close

Hashes for facebook_py-0.2-py3-none-any.whl

Hashes for facebook_py-0.2-py3-none-any.whl
AlgorithmHash digest
SHA2562e1283f7e51cdbbfc4618724fa5c49092d7bca7119913a96feffc4949dc5b4a0
MD5a7bff533f26fa55ebe03d890d63bd6c6
BLAKE2-2565fbb1499adeef346254953cd2a067a5a8529423fdc2ab1ebe0261c3d06964364

I saved mechanize in my Python 2.7 directory. But when I type import mechanize into the Python shell, I get an error message that reads:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import mechanize
ImportError: No module named mechanize

Emperor XLII

12.6k11 gold badges69 silver badges71 bronze badges

asked Feb 3, 2011 at 16:02

using pip:

pip install mechanize

or download the mechanize distribution archive, open it, and run:

python setup.py install

answered Jun 20, 2011 at 21:43

Cara memasang python 27 dan facebook py

Corey GoldbergCorey Goldberg

57k27 gold badges122 silver badges141 bronze badges

3

Try this on Debian/Ubuntu:

sudo apt-get install python-mechanize

answered Apr 18, 2013 at 1:36

Cara memasang python 27 dan facebook py

evedovellievedovelli

2,08526 silver badges27 bronze badges

3

You need to follow the installation instructions and not just download the files into your Python27 directory. It has to be installed in the site-packages directory properly, which the directions tell you how to do.

answered Feb 3, 2011 at 16:06

Daniel DiPaoloDaniel DiPaolo

53.9k14 gold badges113 silver badges114 bronze badges

1

I dont know why , but "pip install mechanize" didnt work for me . easy install worked anyway . Try this :

sudo easy_install mechanize

answered Nov 13, 2012 at 6:26

hari_sreehari_sree

1,4783 gold badges12 silver badges24 bronze badges

1

Here's what I did which worked:

yum install python-pip
pip install -U multi-mechanize

answered Dec 29, 2014 at 10:20

beetreebeetree

8032 gold badges7 silver badges18 bronze badges

0

sudo pip-2.7 install mechanize

EdChum

350k193 gold badges771 silver badges544 bronze badges

answered Nov 30, 2012 at 15:27

opmeitleopmeitle

1956 silver badges19 bronze badges

You need the actual package (the directory containing __init__.py) stored somewhere that's in your system's PYTHONPATH. Normally, packages are distributed with a directory above the package directory, containing setup.py (which you should use to install the package), documentation, etc. This directory is not a package. Additionally, your Python27 directory is probably not in PYTHONPATH; more likely one or more subdirectories of it are.

answered Feb 3, 2011 at 16:10

WoobleWooble

85.5k12 gold badges103 silver badges129 bronze badges

install dependencies on Debian/Ubuntu:

$ sudo apt-get install python-pip python-matplotlib

install multi-mechanize from PyPI using Pip:

$ sudo pip install -U multi-mechanize

Shrey Gupta

5,2797 gold badges44 silver badges70 bronze badges

answered Feb 25, 2014 at 1:41

You need to install the python-setuptools package:

apt-get install python-setuptools on Debian-ish systems yum install python-setuptools on Redhat-ish systems

Use sudo if applicable

Cara memasang python 27 dan facebook py

isedev

18.1k3 gold badges56 silver badges59 bronze badges

answered Jan 9, 2014 at 22:55

0

It seems you need to follow the installation instructions in Daniel DiPaolo's answer to try one of the two approaches below

  1. install easy_install first by running "easy_install mechanize", or
  2. download the zipped package mechanize-0.2.5.tar.gz/mechanize-0.2.5.zip and (IMPORTANT) unzip the package to the directory where your .py file resides (i.e. "the resulting top-level directory" per the instructions). Then install the package by running "python setup.py install".

Hopefully that will resolve your issue!

answered Apr 10, 2018 at 15:16

yangli.liyyangli.liy

1013 silver badges5 bronze badges

Not the answer you're looking for? Browse other questions tagged python python-2.7 mechanize or ask your own question.