Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

419
Views
¿Cómo instalar el módulo 'glob'?

Estoy ejecutando ubuntu 14.04 e intento iniciar ROS Simulator. tengo este error:

 ImportError: No module named 'glob'

Instalar glob2 no resuelve el problema.

python -m site :

 sys.path = [ '/home/omar', '/opt/ros/indigo/lib/python2.7/dist-packages', '/home/omar/anaconda3/lib/python35.zip', '/home/omar/anaconda3/lib/python3.5', '/home/omar/anaconda3/lib/python3.5/plat-linux', '/home/omar/anaconda3/lib/python3.5/lib-dynload', '/home/omar/anaconda3/lib/python3.5/site-packages', '/home/omar/anaconda3/lib/python3.5/site-packages/Sphinx-1.4.6-py3.5.egg', '/home/omar/anaconda3/lib/python3.5/site-packages/numba-0.29.0-py3.5-linux-x86_64.egg', '/home/omar/anaconda3/lib/python3.5/site-packages/glob2-0.4.1-py3.5.egg', '/home/omar/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg', ] USER_BASE: '/home/omar/.local' (exists) USER_SITE: '/home/omar/.local/lib/python3.5/site-packages' (doesn't exist) ENABLE_USER_SITE: True
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Para pitón 2.7:

pip install glob2

Para pitón 3.7:

pip3 install glob2

over 4 years ago · Santiago Trujillo Report

0

Para Python 3, no hay glob3 .

Así que usa:

 sudo pip3 install glob2
over 4 years ago · Santiago Trujillo Report

0

En la versión 3.10 de Python, el módulo global se incluye en la lista de módulos estándar. Significa que no necesita instalarlo.

Es posible que se enfrente a este error porque está utilizando una versión anterior de python.

En este caso utiliza

 pip3 install glob2

Pero asegúrese de que tiene que importarlo usando

 import glob # not import glob2

Espero que esto haya ayudado.

Globos felices.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!