Python Forum
Error creating virtualenv in Windows 7 with Python36-32.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error creating virtualenv in Windows 7 with Python36-32.
#1
I am trying running a blockchain application using pipenv in Python3.6 under virtualenv in my Windows machine but returns this error :

C:\\Program Files\Python36-32\Lib\site-packages__pycache__>pipenv install
Creating a virtualenv for this project.

Traceback (most recent call last): File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp ect.py", line 96, in expect_loop return self.timeout() File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp ect.py", line 70, in timeout raise TIMEOUT(msg) pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x0389EE90

searcher: searcher_re: 0: EOF

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Python36-32\Scripts\pipenv-script.py", line 11, in <mod ule> load_entry_point('pipenv==9.0.3', 'console_scripts', 'pipenv')() File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\click\core. py", line 722, in call return self.main(args, kwargs) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\click\core. py", line 697, in main rv = self.invoke(ctx) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\click\core. py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\click\core. py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\click\core. py", line 535, in invoke return callback(args, **kwargs) File "c:\program files\python36-32\lib\site-packages\pipenv\cli.py", line 1771 , in install ensure_project(three=three, python=python, system=system, warn=True, deploy= deploy) File "c:\program files\python36-32\lib\site-packages\pipenv\cli.py", line 612, in ensure_project ensure_virtualenv(three=three, python=python, site_packages=site_packages) File "c:\program files\python36-32\lib\site-packages\pipenv\cli.py", line 573, in ensure_virtualenv do_create_virtualenv(python=python, site_packages=site_packages) File "c:\program files\python36-32\lib\site-packages\pipenv\cli.py", line 943, in do_create_virtualenv click.echo(crayons.blue(c.out), err=True) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\delegator.p y", line 99, in out self.__out = self.pexpect_out File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\delegator.p y", line 87, in _pexpect_out result += self.subprocess.read() File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\spa wnbase.py", line 427, in read self.expect(self.delimiter) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\spa wnbase.py", line 327, in expect timeout, searchwindowsize, async) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\spa wnbase.py", line 355, in expect_list return exp.expect_loop(timeout) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp ect.py", line 106, in expect_loop return self.timeout(e) File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp ect. py", line 70, in timeout raise TIMEOUT(msg) pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x0389EE90

searcher: searcher_re: 0: EOF <pexpect.popen_spawn.PopenSpawn object at 0x0389EE90> searcher: searcher_re: 0: EOF

Reply
#2
What are you doing here,you try to run pipenv from __pycache__?
(Jan-26-2018, 06:44 PM)djalmabright Wrote: C:\\Program Files\Python36-32\Lib\site-packages__pycache__>pipenv install
Take a look at Python 3.6 and pip installation under Windows
So with correct install,shall python and pip work from anywhere in cmd.
You shall never run anything yourself from site-packages directory.

Here a run how it shall look.
C:\Windows\System32>cd\

# Check pip version
C:\>pip -V
pip 9.0.1 from c:\python36\lib\site-packages (python 3.6)

# Check python version
C:\>python -V
Python 3.6.2

# Install pipenv
C:\>pip install -U pipenv
Collecting pipenv
  Downloading pipenv-9.0.3.tar.gz (3.9MB)
    100% |████████████████████████████████| 3.9MB 301kB/s
    .................................
Successfully installed certifi-2018.1.18 pipenv-9.0.3

# Check pipenv
C:\>pipenv --version
pipenv, version 9.0.3

# Make a folder for enviroment and cd in
C:\>mkdir bar_env
C:\>cd bar_env

# Makle enviroment
C:\bar_env>pipenv install
Creating a virtualenv for this project…
...................
To activate this project's virtualenv, run the following:
 $ pipenv shell

# Activate envromnet 
C:\bar_env>pipenv shell
Launching subshell in virtual environment. Type 'exit' to return.

# Check that python from enviroment is used
λ pipenv --py
C:\Users\Tom\.virtualenvs\bar_env-WBOo7n88\Scripts\python.exe

# Install and check graph
pipenv install requests
pipenv graph
beautifulsoup4==4.6.0
lxml==3.8.0
pytest==3.1.3
  - colorama [required: Any, installed: 0.3.9]
  - py [required: >=1.4.33, installed: 1.4.34]
  - setuptools [required: Any, installed: 38.4.0]
requests==2.18.1
  - certifi [required: >=2017.4.17, installed: 2017.4.17]
  - chardet [required: <3.1.0,>=3.0.2, installed: 3.0.4]
  - idna [required: <2.6,>=2.5, installed: 2.5]
  - urllib3 [required: <1.22,>=1.21.1, installed: 1.21.1]
Reply
#3
Thanks! I tried to make like as you said above however my system still returns in the command line this same exception, please see my output :
C:\>pip -V
pip 9.0.1 from c:\program files\python36-32\lib\site-packages (python 3.6)

C:\>pip install -U pipenv
Requirement already up-to-date: pipenv in c:\program files\python36-32\lib\site-
packages
Requirement already up-to-date: virtualenv in c:\program files\python36-32\lib\s
ite-packages (from pipenv)
Requirement already up-to-date: pew>=0.1.26 in c:\program files\python36-32\lib\
site-packages (from pipenv)
Requirement already up-to-date: pip>=9.0.1 in c:\program files\python36-32\lib\s
ite-packages (from pipenv)
Requirement already up-to-date: requests>2.18.0 in c:\program files\python36-32\
lib\site-packages (from pipenv)
Requirement already up-to-date: flake8>=3.0.0 in c:\program files\python36-32\li
b\site-packages (from pipenv)
Requirement already up-to-date: urllib3>=1.21.1 in c:\program files\python36-32\
lib\site-packages (from pipenv)
Requirement already up-to-date: virtualenv-clone>=0.2.5 in c:\program files\pyth
on36-32\lib\site-packages (from pew>=0.1.26->pipenv)
Requirement already up-to-date: psutil==5.3.1; sys_platform == "win32" in c:\pro
gram files\python36-32\lib\site-packages (from pew>=0.1.26->pipenv)
Collecting setuptools>=17.1 (from pew>=0.1.26->pipenv)
Using cached setuptools-38.4.0-py2.py3-none-any.whl
Requirement already up-to-date: certifi>=2017.4.17 in c:\program files\python36-
32\lib\site-packages (from requests>2.18.0->pipenv)
Requirement already up-to-date: idna<2.7,>=2.5 in c:\program files\python36-32\l
ib\site-packages (from requests>2.18.0->pipenv)
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in c:\program files\python
36-32\lib\site-packages (from requests>2.18.0->pipenv)
Requirement already up-to-date: mccabe<0.7.0,>=0.6.0 in c:\program files\python3
6-32\lib\site-packages (from flake8>=3.0.0->pipenv)
Requirement already up-to-date: pyflakes<1.7.0,>=1.5.0 in c:\program files\pytho
n36-32\lib\site-packages (from flake8>=3.0.0->pipenv)
Requirement already up-to-date: pycodestyle<2.4.0,>=2.0.0 in c:\program files\py
thon36-32\lib\site-packages (from flake8>=3.0.0->pipenv)
Installing collected packages: setuptools
Found existing installation: setuptools 28.8.0
Uninstalling setuptools-28.8.0:
Successfully uninstalled setuptools-28.8.0
Successfully installed setuptools-38.4.0

C:\>pip --version
pip 9.0.1 from c:\program files\python36-32\lib\site-packages (python 3.6)

C:\>pipenv --version
pipenv, version 9.0.3

C:\>mkdir bar_env

C:\>cd bar_env

C:\bar_env>pip install
You must give at least one requirement to install (see "pip help install")

C:\bar_env>pipenv install
Creating a virtualenv for this project.
Traceback (most recent call last):
File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp
ect.py", line 96, in expect_loop
return self.timeout()
File "c:\program files\python36-32\lib\site-packages\pipenv\vendor\pexpect\exp
ect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x03666C70
>
searcher: searcher_re:
0: EOF
Reply
#4
Is your network okay?
Also try on a new restart,with example a package pipenv install requests.
It's discussed here and 1, 2
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Trying to set up virtualenv for windows not working zazas321 2 1,999 Oct-13-2020, 07:01 AM
Last Post: zazas321
  Error while creating new Creating Models on Django aniyanetworks 2 5,287 Jul-13-2018, 12:57 PM
Last Post: aniyanetworks
  Learning Python with pip, cmder and/or virtualenv... RodNintendeaux 8 8,178 Jun-05-2017, 12:07 AM
Last Post: RodNintendeaux

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020