Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <mailman.83.1712670627.3468.python-list@python.org>
Deutsch   English   Français   Italiano  
<mailman.83.1712670627.3468.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Mats Wichmann <mats@wichmann.us>
Newsgroups: comp.lang.python
Subject: Re: ModuleNotFoundError: No module named 'Paramiko'
Date: Tue, 9 Apr 2024 07:50:12 -0600
Lines: 53
Message-ID: <mailman.83.1712670627.3468.python-list@python.org>
References: <PUZPR06MB6147F3C5C940CC8A41D561CBB5002@PUZPR06MB6147.apcprd06.prod.outlook.com>
 <PUZPR06MB61473C936620D72568DDA39BB5002@PUZPR06MB6147.apcprd06.prod.outlook.com>
 <7ed22ed2-cce8-486e-846c-143481edc44b@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de HarZ4dL77GH6R5KKMQ+ODAxLRljZRdXYugPqNtsJOAeg==
Cancel-Lock: sha1:DrOxWbtGAjplvfZTO4leSHMPQbw= sha256:uzPtvE6eyoy9V80oGaQjHiC0JfUu7rLU6JEnTEPxHw8=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="1024-bit key; unprotected key"
 header.d=pobox.com header.i=@pobox.com header.b=SlH1fhU9;
 dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'pip': 0.04;
 '(for': 0.05; 'windows,': 0.05; 'internet,': 0.07;
 'subject:module': 0.07; '"python"': 0.09; 'anyway,': 0.09;
 'steps': 0.11; 'received:173': 0.13; 'import': 0.15; '3.7.1':
 0.16; 'directories': 0.16; 'encounter': 0.16; 'explicit': 0.16;
 'installed.': 0.16; 'interpreter': 0.16; 'issue?': 0.16; 'paths':
 0.16; 'subject:named': 0.16; 'worlds': 0.16; 'wrote:': 0.16;
 'problem': 0.16; 'python': 0.16; "can't": 0.17; 'to:addr:python-
 list': 0.20; 'all,': 0.20; 'issue': 0.21; 'instructions': 0.22;
 'install': 0.23; 'installed': 0.23; 'run': 0.23; 'python,': 0.25;
 'version.': 0.28; 'goes': 0.28; 'environment': 0.29; 'recently':
 0.29; 'header:User-Agent:1': 0.30; 'approach': 0.31; 'module':
 0.31; "doesn't": 0.32; 'python-list': 0.32; 'said,': 0.32;
 'window': 0.32; 'but': 0.32; 'there': 0.33; 'path': 0.33;
 'windows': 0.34; 'package': 0.34; 'header:In-Reply-To:1': 0.34;
 'running': 0.34; 'trying': 0.35; 'computer.': 0.35; 'sir/madam,':
 0.36; 'using': 0.37; "it's": 0.37; 'others': 0.37;
 'received:192.168': 0.37; 'way': 0.38; 'means': 0.38; 'two': 0.39;
 'list': 0.39; 'use': 0.39; 'still': 0.40; 'ide': 0.40;
 'something': 0.40; 'want': 0.40; 'try': 0.40; 'tell': 0.60;
 'provide': 0.60; 'dear': 0.62; 'gives': 0.62; 'copy': 0.63; 'in.':
 0.64; 'upgrade': 0.64; 'your': 0.64; 'customer': 0.67;
 'perfectly': 0.69; 'solutions': 0.70; 'major': 0.78;
 'interpreters': 0.84; 'subject:skip:M 10': 0.91; 'ver': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
 :date:mime-version:subject:to:references:from:in-reply-to
 :content-type:content-transfer-encoding; s=sasl; bh=kL6aOAV7iUd9
 tRixtXtMMjR8p0x61is3rACV4NBzwTw=; b=SlH1fhU97Pe1hNYaKfDtOV2jFN0I
 APjDr6P+LGI86evg1+wqSsRrb6080xOnQ1wrcPLQVOoqt0g0dLNMKyRdjKqbjinr
 7lxsGl1aPSJGMD04uyZZnlt43MYwcX+evtMXYkkUYMF3rtXuqxjKNB4+emjR7rSw
 7PsV4Mgg4MxaHtk=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
 h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
 s=2018-07.pbsmtp; bh=kL6aOAV7iUd9tRixtXtMMjR8p0x61is3rACV4NBzwTw=;
 b=qOFftwpn3a83KcJUF5IlZJ2md+9LZ2r9ya9onxTyvrv2OvIVVwoKMFX4WfQUnw5eIf4zkBg0pjpHNmXSBcHjFaHPdLiI6uGclhxKKQ1a01m10gfiVnwxZPYkpTeTzpA1O6zhv51QFcoMl1g1NUrzFyNz5MEWkJ2h2vFJnQTmilI=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=mats@wichmann.us; keydata=
 xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P
 v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQUCAxXw5Hiq7CSMiwQQZRI6shcnyMh9XTKViT
 WK5MrKDyvjDEn7epjKzKwPS5SG039l6XaOKU0A4uGwCgsNqUQqC0gMMcbKlJV8ql58iKmbMD
 /ii8FPQrXmyS/FnsPs7UddV5qMHKm7NUH5oiKuMVyakInRyq9iIxuu3D4Ec6mWRKcGsjmIkW
 HXCSz0aefs6dsqNqpU54cYioJ3wP5LzHK7oclgJPryVt5Qezbdutf8SQf8gVkaNIlkxwGUzi
 bKTZ6CHzwlz9nNgeel0XPUcZzFxGA/4paeCg2rMSVuAhUQbsLYHu4XzTs9P16zaXkrtxc4m5
 b+BF5xsLgTpyO5l859XudS2Gp+7/Y37dAU4QlyGGOboWmF1y9U5DnzBwG8ghsnym+ga58MJh
 LdRdQQ6xQolCpEXOuzm40f2r5uMxF3KOJ7WpIPuGAkeCPru9BmlATH+zOs0gTWF0cyBXaWNo
 bWFubiA8bWF0c0B3aWNobWFubi51cz7CYQQTEQIAIQIbAwYLCQgHAwIDFQIDAxYCAQIeAQIX
 gAUCT0VyZwIZAQAKCRDAMaCQc9hUxiZBAJ9cWziGp7hVfsu5T+cQptc3rLNndQCgrZh8u5LW
 BfJ5e/Y+3PwZ8UEm+ELOwE0EP5is8BAEAMtwzcA8TYf5UTjDMgwcSNoErTc9ag+IX05QFgL8
 aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u
 xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey
 wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx
 ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB
 36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q
 PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To: <PUZPR06MB61473C936620D72568DDA39BB5002@PUZPR06MB6147.apcprd06.prod.outlook.com>
X-Pobox-Relay-ID: 1766FC8A-F678-11EE-8F4E-F515D2CDFF5E-81526775!pb-smtp20.pobox.com
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <7ed22ed2-cce8-486e-846c-143481edc44b@wichmann.us>
X-Mailman-Original-References: <PUZPR06MB6147F3C5C940CC8A41D561CBB5002@PUZPR06MB6147.apcprd06.prod.outlook.com>
 <PUZPR06MB61473C936620D72568DDA39BB5002@PUZPR06MB6147.apcprd06.prod.outlook.com>
Bytes: 8243

On 4/7/24 19:31, Wenyong Wei via Python-list wrote:
> 
> Dear Sir/Madam,
> 
> Recently I encounter a problem that I can't import paramiko in my computer. My PC running on window 10 64 bits. I have investigate this issue via internet, there are a lot of solutions for this issue, after trying most of the steps, I still can't run this module, the major steps I have try are:
> 
> 
>    1.
> Install python ver 3.7.1 or 3.11.8 by itself or customer installation (changing the installation folder) and check add python to the path.
>    2.
> pip install paramiko, if ver 3.7.1 installed, need to upgrade the pip version.
>    3.
> Checking the environment path, there are two path related to the python, one for python.exe, the other for \Lib\site-packages\paramiko
> 
> can you please provide advice on this issue?

Going to be more explicit than the other answers:

===
If an attempted import gives you ModuleNotFound, that *always* means the 
package is not installed... not at all, or just not in the paths that 
copy of Python is looking in.
===

The problem arises in part because most package installation 
instructions take the simplest approach and just tell you to (for example)

pip install paramiko

So it's installed. But where did it go? You can check where it went:

pip show paramiko

That path ("location") needs to be one where your Python interpreter is 
looking.

If all goes well, "pip" and "python" are perfectly matched, but in the 
current world, there are often several Python interpreters installed 
(projects may require a specific version, an IDE may grab its own 
version, something may create and setup a virtualenv, alternate worlds 
like Conda may set up a Python, the list goes on), and for any given 
installation on Windows, python.exe and the pip excutable pip.exe go in 
different directories anyway, and the Windows PATH doesn't always 
include both, and you easily get mismatches.

As others have said, the way to avoid mismatches is to use pip As A 
Module, specifically a module of the Python you want to use.  So if 
you're using the Python Launcher, that looks like:

py -m pip install paramiko

Hope this helps.