如何解决错误:找不到满足uncompyle6-3.7.4-py3.8要求的版本?

问题描述

我已经从pypi.org网站下载了uncompyle6-3.7.4-py3.8 egg文件,以便反编译.pyc文件。当我尝试在命令提示pip install uncompyle6-3.7.4-py3.8中使用pip命令安装它时,出现以下错误

ERROR: Could not find a version that satisfies the requirement uncompyle6-3.7.4-py3.8 (from versions: none) 
ERROR: No matching distribution found for uncompyle6-3.7.4-py3.8

我正在使用最新版本的Python(3.8)。我尝试为早期的3.7版本下载另一个uncompyle文件,但即使那样,我仍然遇到相同的错误。我也将pip升级到了最新版本。在他们的网站上提到,对于Python 3.7及更高版本,decompyle3中的代码通常更好,但是pycdc却出现相同的错误

如何解决错误?谢谢!

解决方法

您可以使用pip而不是.egg安装.whl文件。为了安装.egg文件,您需要easy_install。 尝试以下命令:

--writing table in all caps differentiates it from other phrases
--the keyword phrase NOT NULL indicates that the column has to have a value in it at every row
--the UNIQUE keyphrase indicates that the column values have to be unique 

CREATE TABLE student (
    student_id INT AUTO_INCREMENT,--auto increment automatically adds 1 to the primary key
    name VARCHAR(20) NOT NULL,major VARCHAR (20) UNIQUE,age INT DEFAULT 'undecided',--the DEFAULT keyword will populate a particular row with phrase in quotes if there is no info entered
    PRIMARY KEY(student_id)
); 
--constraints are rules that we set in our db to control what happens to info.
--creating a rule such that a particular keyword should populate a row when no data is in it is a constraint  
DESCRIBE student;
--the keyword 'DROP' deletes any item that we specify--

DROP TABLE student;

--THIS LINE ADDS THE GPA COLUMN TO OUR TABLE--
ALTER TABLE student ADD gpa DECIMAL(3,2);

--this command displays the info that's currently in the table
SELECT * FROM student;

--INSERTING DATA INTO THE TABLE
--the order in which the tables were created should be the order in whcich they should be inserted into the table
--INSERT INTO student VALUES (2,'Rose','Chemistry',3.23);

--you can specify what values to add to the database if you don't have a particular key 
INSERT INTO student(name,major) VALUES('John','Chemistry');