3

When I try to run !pip install tweepy it displays a warning like this.

  WARNING: Failed to write executable - trying to use .deleteme logic
    ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\\python39\\Scripts\\chardetect.exe' -> 'c:\\python39\\Scripts\\chardetect.exe.deleteme'

How should I overcome this issue. Please help me out.

2 Answers2

1

I faced the similar issue:

to solve:

python -m pip install -U pip --user

run the above command and try again.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Muhammad Ali
  • 956
  • 3
  • 15
  • 20
1

this error occurs due insufficient OS permissions

if you are working in windows:

run command line as administrator and type:

py -m pip install pip-run

then install your package

py -m pip install tweepy
Mohannad_
  • 63
  • 5