25203

TypeError: 'module' object is not callable error running pip install selenium

<h3>Question</h3>

I have a fresh installation for Python on my PC. To reproduce the issue, I open the command prompt and executed the command:

pip install selenium

I am seeing the following error:

<blockquote>

TypeError: 'module' object is not callable

</blockquote>


<h3>Answer1:</h3>

this fiexed it:

python -m pip install selenium --user


<h3>Answer2:</h3>

This error message...

TypeError: 'module' object is not callable

...implies that the program was unable to locate pip.exe with in your system.

From the image it is pretty clear that Python is installed in D: drive while you were trying to access it from C: drive.

Factually, it doesn't matters where ever you install Python within your system as long as you know where it is at and preferably the path is in your system path. You can use the following command to locate the <em>site packages</em> e.g. pip install

import site print(site.getsitepackages())

However, to keep things simple you need to install Python in it's default location and add the path to the system path. Then you can easily run:

pip install selenium

来源:https://stackoverflow.com/questions/59146236/typeerror-module-object-is-not-callable-error-running-pip-install-selenium

Recommend

  • karma-typescript cannot find module
  • Check whether a list starts with the elements of another list
  • How to plot the integral of a signal as time goes by?
  • Can i fade text out at the end of a div?
  • MSBuild: How to read Assembly Version and FIle Version from AssmeblyInfo.cs?
  • SQL Server Delete all rows more than 10 minutes old
  • Getting the syntax of prepared statements right
  • How to generate key hash for Facebook?
  • Struts2 jquery grid gridColumn field is displayed in dialog although using hidedlg=“true”
  • Determine repeat characters in a php string
  • wxpython notebook inside boxsizer
  • Google maps error during visualization
  • Using MS Dynamics NAV with PHP [closed]
  • How to add a method to the versions model of Paper_trail?
  • Mailkit Authenticate to Imap fails
  • Xcode. Image resources added to a test target are not copied into the tests bundle
  • C# Spell checker Problem
  • How to pass a bitfield (by reference) to a function?
  • Reading large text file very slow
  • Adding items to an already existing jlist from another class
  • Is there a function to calculate the difference between two times and display a relative result?
  • Existing data serialized as hash produces error when upgrading to Rails 5
  • JSF validateLength question
  • Coin change recursive approach
  • Application backgrounding in Xamarin.Mac
  • Working with codeception and laravel
  • WSO2 Identity Server + Rest STS Client (without ESB)
  • in Gwt, there are 2 different packages (or 2 options) for doing drag n Drop? Which one is better?
  • What is the diff. between default.properties and project.properties?
  • Implementing and using MinMax with four in row (connect4) game
  • How to intercept local server web requests using Burp in Internet Explorer
  • How to create mirrored image effect with CSS single element
  • didSelectItemAtIndexPath of UICollectionView inside of a UIScrollView is not getting called
  • Firestore: Version history of documents
  • Splitting ReportLab table across PDF page (side by side)?
  • How to define something in JavaScript [closed]
  • Amazon Elastick BeanStalk error: Failed to create the AWS Elastic Beanstalk application version
  • jQuery scrollTop if URL has hash
  • How to decleare char *const argv[] in swift [duplicate]
  • Grails - How to implement a foreign key relationship not using an id column?