Saturday, September 1, 2018

Re: creating virtualenv for django but i get import zlib module error what could be the problem

does it work if you run sudo apt install zlib1g-dev?

On Saturday, September 1, 2018 at 3:31:39 PM UTC+2, Lutalo Bbosa joseph wrote:
raceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 9, in <module>
    load_entry_point('virtualenv==15.0.1', 'console_scripts', 'virtualenv')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1993, in <module>
    """)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1848, in convert
    return zlib.decompress(b).decode('utf-8')
NameError: name 'zlib' is not defined

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ecfc839e-780b-4dd2-a2ee-5894a46932e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment