Hi i'm currently tring to install pyautogui with pip but i get this error:
ERROR: Command errored out with exit status 1:
command: 'c:\users\elève\appdata\local\programs\python\python38-32\python.exe' 'c:\users\elève\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\ELVE~1\AppData\Local\Temp\tmpo7dknhnd'
cwd: C:\Users\Elève\AppData\Local\Temp\pip-install-kccgkr83\pymsgbox
Complete output (14 lines):
running dist_info
creating C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info
writing C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\PKG-INFO
writing dependency_links to C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\dependency_links.txt
writing top-level names to C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\top_level.txt
writing manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe8 in position 0: unexpected end of data (sitecustomize.py, line 7)
warning: no files found matching '*.py' under directory 'pymsgbox'
writing manifest file 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.egg-info\SOURCES.txt'
creating 'C:\Users\Elève\AppData\Local\Temp\pip-modern-metadata-10ci4w8d\PyMsgBox.dist-info'
error: invalid command 'bdist_wheel'
ERROR: Command errored out with exit status 1: 'c:\users\elève\appdata\local\programs\python\python38-32\python.exe' 'c:\users\elève\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\ELVE~1\AppData\Local\Temp\tmpo7dknhnd' Check the logs for full command output.
I've tried to update pip already.
You can install PyAutoGui using either:
pip install pyautogui
OR by running the code given below in PyCharm/Shell
from subprocess import *
from sys import *
call([executable, "-m", "pip", "install", "pyautogui"])
Related
I am new to Python, Anaconda, and coding in general. I'm trying to install pysam. I need it to install HTSeq so that I can convert bam files to count files for a class project. Once they are count files, I plan to use edgeR for the rest of the data analysis. I was able to install NumPy without a problem. I've tried multiple codes for installing pysam, so I'm wondering if I'm missing some sort of dependency? Do I need to install samtools or something before I can install pysam?
In addition to tips for installing pysam, I am also open to advice for other methods for converting bam files to count files. Is it possible to download and use HTSeq for this purpose without pysam? Converting the file is the only thing I need to use HTSeq for to complete my class project. Is there another program other than HTSeq that I could use?
I appreciate any advice, and sorry if I'm leaving out any critical information. This is my first big coding project and the first time I've had to ask a stack question.
Thanks!
Here is what I have tried to install pysam:
conda config --add channels r
Warning: 'r' already in 'channels' list, moving to the top
conda config --add channels bioconda
Warning: 'bioconda' already in 'channels' list, moving to the top
conda install pysam
conda install -c bioconda pysam
conda install -c "bioconda/label/cf201901" pysam
For every conda install I get the same output:
Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
pysam
Current channels: a bunch of links here that stack won't let me post To search for alternate channels that may provide the conda package you're looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
```
```
I also tried:
conda config --append channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the bottom
And when I tried the conda install I got the same output as before.
Even though it's not recommended, I also tried to install with pip using:
pip install pysam
Collecting pysam Using cached pysam-0.20.0.tar.gz (4.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
python setup.py egg_info did not run successfully. exit code: 1 [24 lines of output] pysam: cython is available - using cythonize if necessary pysam: htslib mode is shared pysam: HTSLIB_CONFIGURE_OPTIONS=None is not recognized as an internal or external command, operable program or batch file. is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\Emily\AppData\Local\Temp\pip-install-q06_8qe9\pysam_31e61bb6d116452f888986de7135a214\setup.py", line 381, in <module> htslib_make_options = run_make_print_config() File "C:\Users\Emily\AppData\Local\Temp\pip-install-q06_8qe9\pysam_31e61bb6d116452f888986de7135a214\setup.py", line 79, in run_make_print_config stdout = subprocess.check_output(["make", "-s", "print-config"]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 505, in run with Popen(*popenargs, **kwargs) as process: File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified pysam: htslib configure options: None [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
Encountered error while generating package metadata. See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
I also restarted my laptop, uninstalled and reinstalled Python and Anaconda. I am using Windows, and working in VS through Anaconda as an administrator.
I am using Ubuntu 16.04 with lubunut desktop environment. I had the following problem for more than 3 days when I do apt-get upgrade. I don't know what is problem means and how to solve.
Note: 3 days before I try upgrade Linux-header-4.4.66, but it showed an error. I deleted it. Now, I'm back to Linux-header-4.4.64, which worked fine before.
Error on sudo apt-get dist-upgrade (only last 15 line of 500+ line error):
dpkg: warning: files list file for package 'libxcb-xkb1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbis-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-core7:amd64' missing; assuming package has no files currently installed
(Reading database ... 37151 files and directories currently installed.)
Preparing to unpack .../libgtk-3-bin_3.18.9-1ubuntu3.2_amd64.deb ...
Adding 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin'
dpkg-divert: error: rename involves overwriting '/usr/sbin/update-icon-caches.gtk2' with
different file '/usr/sbin/update-icon-caches', not allowed
dpkg: error processing archive /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.2_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I solved this problem at last night. If you know Chinese, you can read this solution on my blog. I'll detail it here with my poor English.
Create three files in you desktop or anywhere you want.
fix.sh
txt
fixit.py
Add contents in these files
fix.sh: Just an Empty file.
txt: Copy your log into this file with '\n' to separate each line. Just like this:
dpkg: warning: files list file for package 'libxcb-xkb1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libvorbis-dev:amd64' missing; assuming package has no files currently installed
fixit.py: fill the file with the following contents.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Fitzeng'
import re
def main():
fix = open('fix.sh', 'w+')
for line in open("txt"):
pkg = re.match(re.compile('''dpkg: warning: files list file for package '(.+)' '''), line)
if pkg:
cmd = "sudo apt-get install --reinstall " + pkg.group(1)
fix.write(cmd + '\n')
if __name__ == "__main__":
main()
Execute these file.
chmod 777 *
python fixit.py
./fix.sh
OK, problem solved. Actually, you'll find you could alternately just reinstall these packages. So, you can fix it in many ways.
I' m having trouble with pip.
I have installed and updated Setuptools, pip, ez_setup and django. I have also tried to install the packages manually from a tar.gz with no luck.
Still getting the same error:
edit: I'm not sure how to post in the code
Collecting postmaster Using cached postmaster-0.9.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "",
line 1, in
File "C:\Users\m_cur\AppData\Local\Temp\pip-build-kkkd0jbr\postmaster\setup.py",
line 4, in
from postmaster.version import VERSION
File "C:\Users\m_cur\AppData\Local\Temp\pip-build-kkkd0jbr\postmaster\postmaster__init__.py",
line 6, in
from .http import *
File "C:\Users\m_cur\AppData\Local\Temp\pip-build-kkkd0jbr\postmaster\postmaster\http.py",
line 146
except pycurl.error, error:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\m_cur\AppData\Local\Temp\pip-build-kkkd0jbr\postmaster\
I am trying to install the dbf module- see below link.
https://pypi.python.org/pypi/dbf
When I install the module in the Command Prompt, I receive the following invalid syntax error:
C:\Users\dbf-0.96.005>python setup.py install
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running install_lib
byte-compiling C:\Python27\Lib\site-packages\dbf\ver_33.py to ver_33.pyc
File "C:\Python27\Lib\site-packages\dbf\ver_33.py", line 2577 raise DbfError<"unable to write updates to disk, original data restored: %r"X<exc,>> from None
^
SyntaxError: invalid syntax
running install_egg_info
Removing C:\Python27\Lib\site-packages\dbf-0.96.005-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\dbf-0.96.005-py2.7.egg-info
C:\Users\dbf-0.96.005>
Then, if I try to import dbf in Interpreter, I get:
Traceback (most recent call last):
File "W:/Engineering/ENGINEER/LAMP (062012)/Database/VisualDatabase/test", line 1, in <module>
import dbf
File "C:\Python27\ArcGIS10.3\lib\site-packages\dbf\__init__.py", line 11, in <module>
from dbf import ver_2 as _dbf
File "C:\Python27\ArcGIS10.3\lib\site-packages\dbf\ver_2.py", line 49, in <module>
from enum import Enum, IntEnum
ImportError: No module named enum
>>>
Do I need to install Enum? Is there a version of Enum I need?
Sorry, I must have foobarred the last package I created.
Do a
pip install enum34
first.
I had installed Pylint and also configured in Eclipse, but when i tried executing python program following error occures:
PyLint: Executing command line: D:\dist\pylint-1.4.4\setup.py
D:\Practice\sam.py PyLint: The stdout of the command line is: PyLint:
The stderr of the command line is: invalid command name
D:\dist\pylint-1.4.4\setup.py D:\Practice\sam.py