【无标题】

Last login: Tue Jun 11 10:30:50 2024 from 10.0.255.254
u2023170749@n1:~$ source activate
(base) u2023170749@n1:~$ conda info --envs
# conda environments:
#
base                  *  /opt/conda
py310                    /opt/conda/envs/py310
py36                     /opt/conda/envs/py36
py37                     /opt/conda/envs/py37
py38                     /opt/conda/envs/py38
py39                     /opt/conda/envs/py39
pytorch-1.8              /opt/conda/envs/pytorch-1.8

(base) u2023170749@n1:~$ python --version
Python 3.9.15
(base) u2023170749@n1:~$ which python
/opt/conda/bin/python
(base) u2023170749@n1:~$ activate pytorch-1.8 
(base) u2023170749@n1:~$ python version
python: can't open file '/home/u2023170749/version': [Errno 2] No such file or directory
(base) u2023170749@n1:~$ python --version
Python 3.9.15
(base) u2023170749@n1:~$ conda pip install numpy

CommandNotFoundError: No command 'conda pip'.

(base) u2023170749@n1:~$ conda install pip
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - pip


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2024.3.11  |       h06a4308_0         127 KB
    certifi-2024.6.2           |   py39h06a4308_0         160 KB
    openssl-1.1.1w             |       h7f8727e_0         3.7 MB
    pip-24.0                   |   py39h06a4308_0         2.6 MB
    ------------------------------------------------------------
                                           Total:         6.6 MB

The following packages will be UPDATED:

  ca-certificates    anaconda/pkgs/main::ca-certificates-2~ --> pkgs/main::ca-certificates-2024.3.11-h06a4308_0 
  certifi            anaconda/pkgs/main::certifi-2022.9.24~ --> pkgs/main::certifi-2024.6.2-py39h06a4308_0 
  openssl            anaconda/pkgs/main::openssl-1.1.1s-h7~ --> pkgs/main::openssl-1.1.1w-h7f8727e_0 
  pip                anaconda/pkgs/main::pip-22.3.1-py39h0~ --> pkgs/main::pip-24.0-py39h06a4308_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages
                                                                                                                                                                                    
Preparing transaction: done                                                                                                                                                         
Verifying transaction: failed                                                                                                                                                       
                                                                                                                                                                                    
EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
  environment location: /opt/conda
  uid: 500306
  gid: 500306


(base) u2023170749@n1:~$ pip list
Package                       Version
----------------------------- --------------------
aiohttp                       3.8.3
aiosignal                     1.2.0
alabaster                     0.7.12
anaconda-client               1.11.0
anaconda-navigator            2.3.2
anaconda-project              0.11.1
anyio                         3.5.0
appdirs                       1.4.4
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
arrow                         1.2.3
astroid                       2.11.7
astropy                       5.1
asttokens                     2.0.5
async-timeout                 4.0.2
atomicwrites                  1.4.0
attrs                         22.1.0
Automat                       20.2.0
autopep8                      1.6.0
Babel                         2.9.1
backcall                      0.2.0
backports.functools-lru-cache 1.6.4
backports.tempfile            1.0
backports.weakref             1.0.post1
bcrypt                        3.2.0
beautifulsoup4                4.11.1
binaryornot                   0.4.4
bitarray                      2.5.1
bkcharts                      0.2
black                         22.6.0
bleach                        4.1.0
bokeh                         2.4.3
boto3                         1.24.28
botocore                      1.27.59
Bottleneck                    1.3.5
brotlipy                      0.7.0
cachetools                    4.2.2
certifi                       2022.9.24
cffi                          1.15.1
chardet                       4.0.0
charset-normalizer            2.0.4
click                         8.0.4
cloudpickle                   2.0.0
clyent                        1.2.2
colorama                      0.4.5
colorcet                      3.0.1
conda                         22.11.1
conda-build                   3.23.3
conda-content-trust           0.1.3
conda-pack                    0.6.0
conda-package-handling        1.9.0
conda-repo-cli                1.0.24
conda-token                   0.4.0
conda-verify                  3.4.2
constantly                    15.1.0
contourpy                     1.0.5
cookiecutter                  1.7.3
cryptography                  38.0.1
cssselect                     1.1.0
cycler                        0.11.0
Cython                        0.29.32
cytoolz                       0.12.0
daal4py                       2021.6.0
dask                          2022.2.1
datashader                    0.14.3
datashape                     0.5.4
debugpy                       1.5.1
decorator                     5.1.1
defusedxml                    0.7.1
diff-match-patch              20200713
dill                          0.3.4
distributed                   2022.2.1
docutils                      0.18.1
entrypoints                   0.4
et-xmlfile                    1.1.0
executing                     0.8.3
fastjsonschema                2.16.2
filelock                      3.6.0
flake8                        4.0.1
Flask                         1.1.2
flit_core                     3.6.0
fonttools                     4.25.0
frozenlist                    1.3.3
fsspec                        2022.11.0
future                        0.18.2
gensim                        4.1.2
glob2                         0.7
gmpy2                         2.1.2
google-api-core               2.10.1
google-auth                   2.6.0
google-cloud-core             2.3.2
google-cloud-storage          2.6.0
google-crc32c                 1.5.0
google-resumable-media        2.4.0
googleapis-common-protos      1.56.4
greenlet                      2.0.1
grpcio                        1.42.0
h5py                          3.7.0
HeapDict                      1.0.1
holoviews                     1.15.2
hvplot                        0.8.2
hyperlink                     21.0.0
idna                          3.4
imagecodecs                   2021.8.26
imageio                       2.19.3
imagesize                     1.4.1
importlib-metadata            4.11.3
incremental                   21.3.0
inflection                    0.5.1
iniconfig                     1.1.1
intake                        0.6.6
intervaltree                  3.1.0
ipykernel                     6.15.2
ipython                       7.31.1
ipython-genutils              0.2.0
ipywidgets                    7.6.5
isort                         5.9.3
itemadapter                   0.3.0
itemloaders                   1.0.4
itsdangerous                  2.0.1
jdcal                         1.4.1
jedi                          0.18.1
jeepney                       0.7.1
jellyfish                     0.9.0
Jinja2                        2.11.3
jinja2-time                   0.2.0
jmespath                      0.10.0
joblib                        1.1.1
json5                         0.9.6
jsonschema                    4.16.0
jupyter                       1.0.0
jupyter_client                7.4.7
jupyter-console               6.4.3
jupyter_core                  4.11.2
jupyter-server                1.18.1
jupyterlab                    3.5.0
jupyterlab-pygments           0.1.2
jupyterlab-server             2.10.3
jupyterlab-widgets            1.0.0
keyring                       23.4.0
kiwisolver                    1.4.2
lazy-object-proxy             1.6.0
libarchive-c                  2.9
llvmlite                      0.39.1
locket                        1.0.0
lxml                          4.9.1
Markdown                      3.3.4
MarkupSafe                    2.0.1
matplotlib                    3.6.2
matplotlib-inline             0.1.6
mccabe                        0.7.0
mistune                       0.8.4
mkl-fft                       1.3.1
mkl-random                    1.2.2
mkl-service                   2.4.0
mock                          4.0.3
mpmath                        1.2.1
msgpack                       1.0.3
multidict                     6.0.2
multipledispatch              0.6.0
munkres                       1.1.4
mypy-extensions               0.4.3
navigator-updater             0.3.0
nbclassic                     0.4.8
nbclient                      0.5.13
nbconvert                     6.4.4
nbformat                      5.7.0
nest-asyncio                  1.5.5
networkx                      2.8.4
nltk                          3.7
nose                          1.3.7
notebook                      6.5.2
notebook_shim                 0.2.2
numba                         0.56.4
numexpr                       2.8.4
numpy                         1.21.5
numpydoc                      1.5.0
olefile                       0.46
openpyxl                      3.0.10
packaging                     21.3
pandas                        1.4.4
pandocfilters                 1.5.0
panel                         0.14.1
param                         1.12.2
parsel                        1.6.0
parso                         0.8.3
partd                         1.2.0
pathlib                       1.0.1
pathspec                      0.9.0
patsy                         0.5.2
pep8                          1.7.1
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.2.0
pip                           22.3.1
pkginfo                       1.8.3
platformdirs                  2.5.2
plotly                        5.9.0
pluggy                        1.0.0
ply                           3.11
poyo                          0.5.0
prometheus-client             0.14.1
prompt-toolkit                3.0.20
Protego                       0.1.16
protobuf                      3.20.1
psutil                        5.9.0
ptyprocess                    0.7.0
pure-eval                     0.2.2
py                            1.11.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycodestyle                   2.8.0
pycosat                       0.6.4
pycparser                     2.21
pyct                          0.4.8
pycurl                        7.45.1
PyDispatcher                  2.0.5
pydocstyle                    6.1.1
pyerfa                        2.0.0
pyflakes                      2.4.0
Pygments                      2.11.2
PyHamcrest                    2.0.2
PyJWT                         2.4.0
pylint                        2.14.5
pyls-spyder                   0.4.0
pyodbc                        4.0.34
pyOpenSSL                     22.0.0
pyparsing                     3.0.9
PyQt5-sip                     12.11.0
pyrsistent                    0.18.0
PySocks                       1.7.1
pytest                        7.1.2
python-dateutil               2.8.2
python-lsp-black              1.2.1
python-lsp-jsonrpc            1.0.0
python-lsp-server             1.5.0
python-slugify                5.0.2
python-snappy                 0.6.1
pytz                          2022.1
pyviz-comms                   2.0.2
PyWavelets                    1.4.1
pyxdg                         0.27
PyYAML                        6.0
pyzmq                         23.2.0
QDarkStyle                    3.0.2
qstylizer                     0.1.10
QtAwesome                     1.0.3
qtconsole                     5.3.2
QtPy                          2.2.0
queuelib                      1.5.0
regex                         2022.7.9
requests                      2.28.1
requests-file                 1.5.1
rope                          0.22.0
rsa                           4.7.2
Rtree                         0.9.7
ruamel.yaml                   0.17.21
ruamel.yaml.clib              0.2.6
ruamel-yaml-conda             0.17.21
s3transfer                    0.6.0
scikit-image                  0.19.3
scikit-learn                  1.0.2
scikit-learn-intelex          2021.20221004.171807
scipy                         1.7.3
Scrapy                        2.6.2
seaborn                       0.12.1
SecretStorage                 3.3.1
Send2Trash                    1.8.0
service-identity              18.1.0
setuptools                    65.5.0
sip                           6.6.2
six                           1.16.0
smart-open                    5.2.1
sniffio                       1.2.0
snowballstemmer               2.2.0
sortedcollections             2.1.0
sortedcontainers              2.4.0
soupsieve                     2.3.2.post1
Sphinx                        5.0.2
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
spyder                        5.3.3
spyder-kernels                2.3.3
SQLAlchemy                    1.4.39
stack-data                    0.2.0
statsmodels                   0.13.2
sympy                         1.11.1
tables                        3.6.1
tabulate                      0.8.10
TBB                           0.2
tblib                         1.7.0
tenacity                      8.0.1
terminado                     0.13.1
testpath                      0.6.0
text-unidecode                1.3
textdistance                  4.2.1
threadpoolctl                 2.2.0
three-merge                   0.1.1
tifffile                      2021.7.2
tinycss                       0.4
tldextract                    3.2.0
toml                          0.10.2
tomli                         2.0.1
tomlkit                       0.11.1
toolz                         0.12.0
tornado                       6.2
tqdm                          4.64.1
traitlets                     5.7.1
Twisted                       22.2.0
typed-ast                     1.4.3
typing_extensions             4.4.0
ujson                         5.4.0
Unidecode                     1.2.0
urllib3                       1.26.13
w3lib                         1.21.0
watchdog                      2.1.6
wcwidth                       0.2.5
webencodings                  0.5.1
websocket-client              0.58.0
Werkzeug                      2.0.3
whatthepatch                  1.0.2
wheel                         0.37.1
widgetsnbextension            3.5.2
wrapt                         1.14.1
wurlitzer                     3.0.2
xarray                        2022.11.0
xlrd                          2.0.1
XlsxWriter                    3.0.3
yapf                          0.31.0
yarl                          1.8.1
zict                          2.1.0
zipp                          3.8.0
zope.interface                5.4.0
(base) u2023170749@n1:~$  source activate
(base) u2023170749@n1:~$ conda env list
# conda environments:
#
base                  *  /opt/conda
py310                    /opt/conda/envs/py310
py36                     /opt/conda/envs/py36
py37                     /opt/conda/envs/py37
py38                     /opt/conda/envs/py38
py39                     /opt/conda/envs/py39
pytorch-1.8              /opt/conda/envs/pytorch-1.8

(base) u2023170749@n1:~$ conda activatecpy39

CommandNotFoundError: No command 'conda activatecpy39'.
Did you mean 'conda activate'?

(base) u2023170749@n1:~$ conda activate py39
(py39) u2023170749@n1:~$ python main.py
python: can't open file '/home/u2023170749/main.py': [Errno 2] No such file or directory
(py39) u2023170749@n1:~$ ls
alignn-main.zip  CrysMMNetDataset  demo1  jupyterlab
(py39) u2023170749@n1:~$ cd demo1/
(py39) u2023170749@n1:~/demo1$ python main.py
data2034
(py39) u2023170749@n1:~/demo1$ python main.py
Traceback (most recent call last):
  File "/home/u2023170749/demo1/main.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
(py39) u2023170749@n1:~/demo1$ pip list
Package           Version
----------------- ---------
asttokens         2.0.5
backcall          0.2.0
certifi           2022.9.24
debugpy           1.5.1
decorator         5.1.1
entrypoints       0.4
executing         0.8.3
ipykernel         6.15.2
ipython           8.7.0
jedi              0.18.1
jupyter_client    7.4.7
jupyter_core      4.11.2
matplotlib-inline 0.1.6
nest-asyncio      1.5.5
packaging         21.3
parso             0.8.3
pexpect           4.8.0
pickleshare       0.7.5
pip               22.3.1
prompt-toolkit    3.0.20
psutil            5.9.0
ptyprocess        0.7.0
pure-eval         0.2.2
Pygments          2.11.2
pyparsing         3.0.9
python-dateutil   2.8.2
pyzmq             23.2.0
setuptools        65.5.0
six               1.16.0
stack-data        0.2.0
tornado           6.2
traitlets         5.7.1
wcwidth           0.2.5
wheel             0.37.1
WARNING: There was an error checking the latest version of pip.
(py39) u2023170749@n1:~/demo1$ pip list
Package           Version
----------------- ---------
asttokens         2.0.5
backcall          0.2.0
certifi           2022.9.24
debugpy           1.5.1
decorator         5.1.1
entrypoints       0.4
executing         0.8.3
ipykernel         6.15.2
ipython           8.7.0
jedi              0.18.1
jupyter_client    7.4.7
jupyter_core      4.11.2
matplotlib-inline 0.1.6
nest-asyncio      1.5.5
packaging         21.3
parso             0.8.3
pexpect           4.8.0
pickleshare       0.7.5
pip               22.3.1
prompt-toolkit    3.0.20
psutil            5.9.0
ptyprocess        0.7.0
pure-eval         0.2.2
Pygments          2.11.2
pyparsing         3.0.9
python-dateutil   2.8.2
pyzmq             23.2.0
setuptools        65.5.0
six               1.16.0
stack-data        0.2.0
tornado           6.2
traitlets         5.7.1
wcwidth           0.2.5
wheel             0.37.1
(py39) u2023170749@n1:~/demo1$ python main.py
data2034
(py39) u2023170749@n1:~/demo1$ pip install numpy
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy
  Downloading numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 22.3 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.26.4
(py39) u2023170749@n1:~/demo1$ python main.py
data2034
(py39) u2023170749@n1:~/demo1$ ^C
(py39) u2023170749@n1:~/demo1$ ^C
(py39) u2023170749@n1:~/demo1$ python main.py^C
(py39) u2023170749@n1:~/demo1$ python main.py
hello22233
data2034
(py39) u2023170749@n1:~/demo1$ python main.py
hello22233
data2034
(py39) u2023170749@n1:~/demo1$
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值