笨办法习题46项目骨架测试不了,python3.9.7

1.virtualenv已经安装

2.(base) PS C:\Users\HP> pip install nose
Requirement already satisfied: nose in c:\users\hp\anaconda3\lib\site-packages (1.3.7)
(base) PS C:\Users\HP> cd C:\Users\HP\projects\skeleton
(base) PS C:\Users\HP\projects\skeleton> python -m "nose"

Ran 0 tests in 0.021s

OK
(base) PS C:\Users\HP\projects\skeleton> nosetests
程序“nosetests.exe”无法运行: 拒绝访问。所在位置 行:1 字符: 1

nosetests
所在位置 行:1 字符: 1
nosetests
CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
FullyQualifiedErrorId : NativeCommandFailed
(base) PS C:\Users\HP\projects\skeleton>

3.(base) PS C:\Users\HP> ..venvs\1pthw\Scripts\activate
(base) (1pthw) PS C:\Users\HP> pip install distribution
Collecting distribution
Downloading distribution-1.0.0.tar.gz (571 bytes)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: distribution
Building wheel for distribution (setup.py) ... done
Created wheel for distribution: filename=distribution-1.0.0-py3-none-any.whl size=1335 sha256=36c023ce3d31b0c5320ebf0caea032f964e2f20fd16bec0b2c0178c3968e221c
Stored in directory: c:\users\hp\appdata\local\pip\cache\wheels\07\51\37\da3945dc6cfadbbae3c4df6afef21a6f1b2d41603b930b6593
Successfully built distribution
Installing collected packages: distribution
Successfully installed distribution-1.0.0
(base) (1pthw) PS C:\Users\HP> cd projects
(base) (1pthw) PS C:\Users\HP\projects> cd skeleton
(base) (1pthw) PS C:\Users\HP\projects\skeleton> nosetests


Ran 0 tests in 0.010s

OK
(base) (1pthw) PS C:\Users\HP\projects\skeleton> python -m"nose"


Ran 0 tests in 0.011s

OK
(base) (1pthw) PS C:\Users\HP\projects\skeleton>

4.(base) (1pthw) PS C:\Users\HP\projects\skeleton> python
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation

Type "help", "copyright", "credits" or "license" for more information.

img

img

img

img

img